Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to convert a text file (ACSII) to a Unicode file ?
Message
De
19/10/2011 03:52:57
 
 
À
18/10/2011 23:36:57
Yim Ming Sun Derek
Spacious Design Consultant
Hong Kong, Hong Kong
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
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01526833
Message ID:
01526838
Vues:
73
>Hi,
>I have a text file which contain some chinese char. which using
>2 char.(2 bytes) to stand for 1 chinese word, I want to convert it to Unicode file.
>
>How can I do ?
>
>Please advise.
>
>Derek

Try message#1523724

Use StringToUTF8() or StringToUTF16()

You can pass the code page used in the string to both functions

If you convert it to a file - you may want to add the BOM (Byte order mark) - see StringToFile in help
Gregory
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform