Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to convert a text file to utf-8
Message
From
04/11/2011 10:41:53
 
 
To
04/11/2011 10:37:17
Reza Meamar
Homa Programming Group
Shiraz, Iran
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01528059
Message ID:
01528063
Views:
45
>>Check the Strconv() function in Help.
>>
>>>Dear All,
>>>I want to Convert a Text File to UTF-8 similar to below steps, but with vfp commands. How can i do this?
>>>
>>>1 ) Open Notepad.
>>>2 ) Click "File," "Open." Select the text file you want to convert. Click "Open."
>>>3 ) Open the "File" menu again. Select "Save As." Enter your preferred file name.
>>>4 ) Choose "UTF-8" from the drop-down menu beside "Encoding." Click "Save."
>>>
>>>thanks
>
>NO, I check this function. i want to change my text file that created with TEXT ... ENDTEXT and is in ANSII mode to UTF-8 as said above.

Please reread my message and Help, you will realize that I gave you the answer you were looking for. A combination on Filetostr(), Strtofile() and Strconv() should be enough.

Also you need to realize that VFP has very limited support for double byte text files.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform