Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with XSLT and encoding
Message
 
To
29/07/2003 10:56:11
Martin Van Krieken
Capgemini Nederland Bv
Utrecht, Netherlands
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Miscellaneous
Thread ID:
00814530
Message ID:
00814802
Views:
9
Hi Martin,

When the "encoding" attribute is ommited in the XML declaration, UTF-8 or UTF-16 is assumed. Exactly what depends on the BOM of the file.

STRTOFILE() saves the file ANSI encoded. In order to write the byte stream in UTF-8, try to use the STRCONV() function with the value "9" in the second parameter, as shown here:
STRTOFILE(STRCONV(lcXml,9), 'Test.xml', 0)
The value "9" in the second parameter converts the string from DBCS to UTF-8

Regards,
-----
Fabio Vazquez
http://www.fabiovazquez.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform