Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Non standard characters in XML
Message
From
24/04/2012 07:07:12
 
 
To
24/04/2012 05:25:44
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01542427
Message ID:
01542433
Views:
64
>I am interfacing with a soap based webservice which returns XML documents in the standard OTA (Open Travel Association) format.
>
>I have come across an issue where names and sometime notes include no standard characters, IE above 127 in the ASCII table.
>
>For example a German name that has an umlaut or a french word with a accute etc. these characters prevent XML readers from opening the XML file as they report "invalid character at positions n of line y".
>
>I know I can manually go through the XML string character by character and convert anything with a high ASCII, but that leads to questions on what to convert to and may make names distinct from what was intended.
>
>Does anyone know a function or process I can use to "tidy up" before reading? or is tehre a standardisation like in HTML where I can convert to &#+ASCII number to XML Parser can read and convert?
>
>
>Gary.
_______________________
Gary,

How does the xml look like ? is, what is its encoding ? (see first line of the xml)

looks like
<?xml version="1.0" encoding="UTF-8"?>
In the above case, it is UTF-8

An xml reader has to take care of the encoding


Where do you have problems ?
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform