Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Utf-8 encoding
Message
 
À
09/10/2020 07:57:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
01676546
Message ID:
01676547
Vues:
56
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform