Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to transform text file from Unicode UTF8 to Windows1
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01401743
Message ID:
01401746
Vues:
84
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform