Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
UTF-8 and special chars
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
XML, XSD
Titre:
UTF-8 and special chars
Divers
Thread ID:
00818673
Message ID:
00818673
Vues:
72
Hi there,

I have a xml-file which I want to read and write to a delimited file.
The xml-file contains special german chars, which are diplayed properly
when I open the file with Internet-Explorer 6.
But when I use the MSXML.DLL, Version 4 things don't work like I want.
For example, the german char "ö" (chr(246)), becomes chr(111) + chr(168) ("o" and the two little dots above the "o" as a second char).
The xml-file, which is UTF-8 encoded, viewed with a hex-editor, contains this
char as char(111) + char(204) + chr(136).

I also tried to convert the fields containing these special chars with strconv, but whatever I try does not work.

The code I use to get fields from the xml-file is something like:

cString = oObject.getelementsnytagname("b037").item(0).text

Could anyone give me some advice what to do ?

Thanks in advance

Thomas

P.S.: I use VFP7, SP1
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform