Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with XSLT and encoding
Message
From
30/07/2003 03:57:19
Martin Van Krieken
Capgemini Nederland Bv
Utrecht, Netherlands
 
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Miscellaneous
Thread ID:
00814530
Message ID:
00814819
Views:
12
Hi Fabio,

Thanks for your response. StrConv was one of the options I did try, but with no result. Further testing with this revealed that the BOM does not change if you use StrToFile with different 3 parameter when not erasing the file before.

Regards,

Martin


>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,
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform