appcelerator/titanium_mobile — pull request #2432 by vishalduggal (2012-06-19 20:52:08+00:00)
Title: [TIMOB-9558] iOS: XHR calls fail if the response data has invalid encoding

This PR basically tries both UTF-8 and ISO-8859-1 encoding (in that order) in the responseText method if encoding can not be extracted. Updated Android to follow the same behavior.

Test is in [JIRA](https://jira.appcelerator.org/browse/TIMOB-9558)

Can CR and FR but do not merge to master until 2_1_X branch is created.