Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iso-8859-1 vs utf-8 android

I have an object in retriving http post response from webserver. However unicode will requires me to do the following

BufferedReader reader = new BufferedReader(new InputStreamReader(
                    is, "UTF-8"), 8);

instead of my usual

BufferedReader reader = new BufferedReader(new InputStreamReader(
                is, "iso-8859-1"), 8);

If i were to use unicode for all response, will it affect my normal text?

like image 946
ericlee Avatar asked Dec 11 '11 14:12

ericlee


1 Answers

You sould check what the webserver responses. It can be iso-8859-1 or UTF-8. Check the Charset of the Content-Type header from the HTTP response

like image 94
rekire Avatar answered Sep 24 '22 21:09

rekire