[TIMOB-1672] Android: XHR to XML (responseXML) does not respect encoding
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Trivial |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:56:49.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.5.0 |
Components | Android |
Labels | android, defect |
Reporter | Bill Dawson |
Assignee | Bill Dawson |
Created | 2011-04-15T02:59:01.000+0000 |
Updated | 2011-04-17T01:56:49.000+0000 |
Description
Customer uses a feed service which provides xml in ISO-8859-1.
The xml processing instruction accurately reflects that the
charset=ISO-8859-1. Our HTTPClient.responseText
also
accurately determines the charset, but
HTTPClient.responseXML
just hands off the string to
XMLModule.parse
without telling it what the encoding
is.
In the customer's specific case, this meant that umlauts (e.g., ö) and accented characters (e.g., é) were screwed up when displayed on the android (or emulator) screen.
Screenshot of problem:
http://skitch.com/billdawson/dwk1r/5560-titanium-5-hvga">http://skitch.com/billdawson/dwk1r/5560-titanium-5-hvga
Attachments
File | Date | Size |
---|---|---|
emulator.png | 2011-04-15T02:59:01.000+0000 | 119408 |
remotefile.js | 2011-04-15T02:59:02.000+0000 | 6789 |
titanium.png | 2011-04-15T02:59:01.000+0000 | 148157 |