Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CursorToXml() in UTF-8
Message
De
22/03/2017 17:15:32
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
XML, XSD
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2003
Database:
MS SQL Server
Divers
Thread ID:
01649260
Message ID:
01649266
Vues:
56
>>When I issue
>>
>>cursortoxml(alias(), lcXmlFileName, 1, 48+512)
>>
>>the xml I get has the proper utf-8 in the header line, but the file itself is not encoded in utf-8 at all. The codepage of the cursor (1250 at the moment, but there may be others in the future) seems to be irrelevant, it is exported as 1252.
>>
>>So what, do I have to do a filetostr(), strconv() twice and add the BOM to get a proper utf-8 encoded xml file? I can do that, no problem, I just want to know if there's something in the cursortoxml() above that I forgot.
>
>
>cursortoxml(alias(), lcXmlFileName, 1, 48+512+32768)
>
That's it! I kind of remember there was something to it, but intellisense doesn't list this value.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform