0

How is it possible to set a charset to the AsyncHttpClient? I can't recieve "ΓΌ" or something like this in a readable way (just receiving question tags).

Can anyone help me?

Phil
  • 583
  • 4
  • 7
  • 19

1 Answers1

0

After checking with Loopj documentation you can see that the AsyncHttpResponseHandler can change the charset using a method for the character you want to receive you need charset of UTF-8. Link And here is an someone on Github with the same issue and its solution. Link

Hamad AlGhanim
  • 166
  • 1
  • 13
  • But it should be UTF-8 by default and even when I do `setCharset("UTF-8");` it does not work – Phil Jul 13 '14 at 13:54
  • Have you tried changing your project's encoding to utf8? if you're using eclipse its under Project > Properties > Text file encoding – Hamad AlGhanim Jul 13 '14 at 14:05
  • Yes I'm using eclipse but I can't find Text File encodeing in properties Edit: nevermind, I found it - I just need to test Edit2: Still not working :/ I am receiving text from a php file and if I open this file manually in browser it works with the utf-8 – Phil Jul 13 '14 at 14:14