Information générale
Titre:
UTF-8 and special chars
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement