Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Utf-8 encoding
Message
From
10/10/2020 07:33:21
 
 
To
10/10/2020 07:27:10
Antonio Lopes (Online)
BookMARC
Coimbra, Portugal
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
01676546
Message ID:
01676583
Views:
26
I tried with theirs example
<?xml version="1.0" encoding="UTF-8"?>
<!-- the rest of the document... -->
but that didn't help.


>Thanks (again, this is not a first time you helped me). I managed with
>
> NazFakt = "XX.XML"
> obj = CreateObject("ADODB.Stream")
> obj.CharSet = "utf-8"
> obj.open()
> obj.LoadFromFile("Proba.XML")
> obj.SaveToFile("FAKTURE\"+NazFakt)
> obj.Close()
>
>
>>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.
>

Zoran, most XML compliant services support other encodings besides Unicode, raw or transformed. Did you try to build your XML document with an XML declaration where you state the encoding explicitly?
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- the rest of the document... -->
or even
<?xml version="1.0" encoding="windows-1250"?>
<!-- the rest of the document... -->
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform