Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with XSLT and encoding
Message
De
30/07/2003 03:57:19
Martin Van Krieken
Capgemini Nederland Bv
Utrecht, Pays-Bas
 
Information générale
Forum:
Visual FoxPro
Catégorie:
XML, XSD
Divers
Thread ID:
00814530
Message ID:
00814819
Vues:
13
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,
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform