I am trying to get a (JSON formatted) String from a URL and consume it as a Json object. I lose UTF-8 encoding when I convert the String to JSONObject.
This is The f
Not sure if this will help, but you might be able to do something like this:
JSONObject result = null; String str = null; try { str = new String(output, "UTF-8"); result = (JSONObject) new JSONTokener(str).nextValue(); } catch (Exception e) {} String messages = result.getString("messages");