J'ai un JSON et il contient des caractères en langage birman. Quand je veux les obtenir, les personnages changent. Voici mon code:Comment puis-je imprimer des caractères bruma provenant d'un objet JSON JAVA
HttpsURLConnection connection = (HttpsURLConnection) url.openConnection();
InputStream is = connection.getInputStream();
StringWriter sw = new StringWriter();
IOUtils.copy(is, sw,"UTF-8");
String s=sw.toString();
JSONObject mainjobj= new JSONObject(s);
la chaîne doit contenir les caractères de birmanie normalement, mais il revient comme: » ...., "name": "ဝါး ကွဲ ထမ်း ပိုး, ဆိုင်း ပေါင် ကျိုး နှင့် ပုဆိုး ညစ် တေ, ယောင် ထန်း စေ့ မှုတ်,", "FILE_URL": « ht .... »
Quel est le problème avec ce code? merci.
Merci pour votre réponse et 'Birmanie': D – Ozan