glindholm
11 years agoNew Contributor
UTF-8 data in XML response not decoded as Unicode
Unicode data encoded as UTF-8 in an XML response is not begin displayed correctly.
It appears it is being decoded as ISO-8859-1 instead of UTF-8.
I will paste in a segment of the response (not sure this forum will display correctly.)
Here is what the 2nd campaign name should be display as: (again not sure if forum will display correctly).
It appears it is being decoded as ISO-8859-1 instead of UTF-8.
I will paste in a segment of the response (not sure this forum will display correctly.)
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: text/xml
Content-Length: 6823
Date: Fri, 17 Jan 2014 14:58:51 GMT
<?xml version="1.0" encoding="UTF-8"?>
<campaigns>
<campaign id="168367">
<name>Base 6 updated (3)</name>
<description>Base6 Description</description>
</campaign>
<campaign id="168370">
<name>Campaign 1 - NeoCødé</name>
<description></description>
</campaign>
Here is what the 2nd campaign name should be display as: (again not sure if forum will display correctly).
<name>Campaign 1 - NeoCødé</name>