Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to convert a text file (ACSII) to a Unicode file ?
Message
From
19/10/2011 03:52:57
 
 
To
18/10/2011 23:36:57
Yim Ming Sun Derek
Spacious Design Consultant
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01526833
Message ID:
01526838
Views:
72
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform