Skip to content

Response string charset option #286

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

cdraeger
Copy link

The XML response of the web service I need is encoded in ISO-8859-1. I experienced false characters with no way for me to handle or convert the response string properly since UTF-8 is hardcoded. The charset has to be set when the response string is built.

I simply added a class variable for the charset to the AsyncHttpResponseHandler. The default is still UTF-8, but now there's an option to set the charset via a setter. I did not add another constructor with a charset-string as a parameter (yet?) to keep it simple.

@smarek smarek closed this in 6371c68 Oct 12, 2013
@ghost ghost assigned smarek Oct 12, 2013
iNdieboyjeff pushed a commit to iNdieboyjeff/android-async-http that referenced this pull request Oct 14, 2013
# By mareksebera (51) and Marek Sebera (2)
# Via mareksebera
* 'master' of https://github.com/loopj/android-async-http: (53 commits)
  Handy method to specify charset in anonymous inner instances
  Sample Application initial state
  Removed unnecessary dependency, android-async-http#168
  Javadoc formatting
  Fixed 2d34e1c leftover, Closes android-async-http#86
  Fixing android-async-http#79, Allowing non-standard HTTP and HTTPS ports
  Added warning about SSL bypass fix
  Related to android-async-http#67, avoiding NPE in JsonHttpResponseHandler
  Fixes android-async-http#61, allow removing of Basic Auth credentials
  Compatibility changes fix
  Fixes android-async-http#14
  Fixes android-async-http#143
  android-async-http#88 uncatched exception
  Closes android-async-http#266
  Closes android-async-http#283
  Fixes android-async-http#286
  Fixes android-async-http#294
  Fixes android-async-http#287
  Fixes android-async-http#295
  Added Maven description to README file [skip ci]
  ...

Conflicts:
	.classpath
	build.gradle
	project.properties
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants