Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
UTF-8 and special chars
Message
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Title:
UTF-8 and special chars
Miscellaneous
Thread ID:
00818673
Message ID:
00818673
Views:
70
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
Next
Reply
Map
View

Click here to load this message in the networking platform