Hi all. I'm having troubles when I want show a JSON response. I extract correctly the strings but when there is characters like 'á' or '¿' instead of these ones appears 'Ãi' or '¿'. I think that the response comes in non-UTF8 enconding, but I cannot find how to convert it.
EDIT: I'm trying to do a GET request to this URL: https://graph.facebook.com/me to retrieve the info of my profile passing the access token.
HttpGet get = new HttpGet(url);
response = client.execute(get);
To extract the response I do this:
JSONObject json_object;
response.getEntity().writeTo(ostream);
json_object = new JSONObject(ostream.toString());
String name = json_object.getString("name");
Log.d("NAME",name);
Note that I'm programming with Android SDK.
Thanks.