Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Utf-8 encoding
Message
 
To
09/10/2020 07:57:46
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
01676546
Message ID:
01676547
Views:
57
>I need to create file with utf-8 encoding not ansi. File is created with low level functions fputs, fwrite. I can save as utf-8 with notepad or some other tools but I need it from prg. Remark is that is VFP6 so I can't use STRCONV(xx,9) from next version.
>
>Thanks in advance.
  obj = CreateObject("ADODB.Stream")
  obj.CharSet = "utf-8"
  obj.Open()
  obj.WriteText("Тест за  UTF-8") && Some Cyrillic here :-)
  obj.SaveToFile("D:\TEST.TXT") && Adjust the path here
  obj.Close()
NOT TESTES
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform