Dear all,
I've spent a long time to try to get the xmldocument.loa d method
to handle UTF-8 characters, but no luck. Every time it loads a
document contains european characters (such as the one below, output
from google map API), it always said invalid character at position
229, which I believe is the "ß" character.
Can anyone point me to the right direction of how to load such
documents using the xmldocument.loa d() method, or some other better
ways to do this?
Thanks!
---------------sample XML file------------------
<?xml version="1.0" encoding="UTF-8" ?>
- <kml xmlns="http://earth.google.co m/kml/2.0">
- <Response>
<name>germanias tr 134, berlin berlin</name>
- <Status>
<code>200</code>
<request>geocod e</request>
</Status>
- <Placemark>
<address>German iastraße 134, 12099 Tempelhof, Berlin, Germany</
address>
- <AddressDetai ls Accuracy="8"
xmlns="urn:oasi s:names:tc:ciq: xsdschema:xAL:2 .0">
- <Country>
<CountryNameCod e>DE</CountryNameCode >
- <Administrative Area>
<Administrative AreaName>Berlin </AdministrativeA reaName>
- <SubAdministrat iveArea>
<SubAdministrat iveAreaName>Ber lin</SubAdministrati veAreaName>
- <Locality>
<LocalityName>B erlin</LocalityName>
- <DependentLocal ity>
<DependentLocal ityName>Tempelh of</DependentLocali tyName>
- <Thoroughfare >
<ThoroughfareNa me>Germaniastra ße 134</ThoroughfareNam e>
</Thoroughfare>
- <PostalCode>
<PostalCodeNumb er>12099</PostalCodeNumbe r>
</PostalCode>
</DependentLocali ty>
</Locality>
</SubAdministrati veArea>
</AdministrativeA rea>
</Country>
</AddressDetails>
- <Point>
<coordinates>13 .399486,52.4644 76,0</coordinates>
</Point>
</Placemark>
</Response>
</kml>
I've spent a long time to try to get the xmldocument.loa d method
to handle UTF-8 characters, but no luck. Every time it loads a
document contains european characters (such as the one below, output
from google map API), it always said invalid character at position
229, which I believe is the "ß" character.
Can anyone point me to the right direction of how to load such
documents using the xmldocument.loa d() method, or some other better
ways to do this?
Thanks!
---------------sample XML file------------------
<?xml version="1.0" encoding="UTF-8" ?>
- <kml xmlns="http://earth.google.co m/kml/2.0">
- <Response>
<name>germanias tr 134, berlin berlin</name>
- <Status>
<code>200</code>
<request>geocod e</request>
</Status>
- <Placemark>
<address>German iastraße 134, 12099 Tempelhof, Berlin, Germany</
address>
- <AddressDetai ls Accuracy="8"
xmlns="urn:oasi s:names:tc:ciq: xsdschema:xAL:2 .0">
- <Country>
<CountryNameCod e>DE</CountryNameCode >
- <Administrative Area>
<Administrative AreaName>Berlin </AdministrativeA reaName>
- <SubAdministrat iveArea>
<SubAdministrat iveAreaName>Ber lin</SubAdministrati veAreaName>
- <Locality>
<LocalityName>B erlin</LocalityName>
- <DependentLocal ity>
<DependentLocal ityName>Tempelh of</DependentLocali tyName>
- <Thoroughfare >
<ThoroughfareNa me>Germaniastra ße 134</ThoroughfareNam e>
</Thoroughfare>
- <PostalCode>
<PostalCodeNumb er>12099</PostalCodeNumbe r>
</PostalCode>
</DependentLocali ty>
</Locality>
</SubAdministrati veArea>
</AdministrativeA rea>
</Country>
</AddressDetails>
- <Point>
<coordinates>13 .399486,52.4644 76,0</coordinates>
</Point>
</Placemark>
</Response>
</kml>
Comment