Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to transform text file from Unicode UTF8 to Windows1
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01401743
Message ID:
01401746
Views:
85
>Hi all
>I am moving an application to VFP, and i got all the data in a 3MB text file UTF8 encoded.
>How can i transform it to Hebrew Windows ( it's windows 1255 encoding )
>
>TIA
>Jaime

Jaime,

I have these functions
You may have to experiment with Utf8ToChar() and add 1255 as RegionalIdentifier after ,2
I'm not sure - but it may take your system's locale Id - so you won't have to add the RegionalIdentifier
*---------------------------------------------------------------------------
function Utf8ToChar(s)
	return strconv(strconv(strconv(m.s, 12),6),2)
endfunc
*-------------------------------------------------------------------------------
function CharToUtf8(s)
	return strconv(strconv(m.s, 1),9)
endfunc
*-------------------------------------------------------------------------------
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform