3
I am consuming the IBGE API to get the municipalities by state. When I print the municipalities the accents get wrong. What can I do to fix it? Below the code that takes the name of municipalities.
JSONArray jsonarray = new JSONArray(jsonString);
List municipios = new ArrayList();
for (int i = 0; i < jsonarray.length(); i++) {
JSONObject jsonobject = jsonarray.getJSONObject(i);
municipios.add(jsonobject.getString("nome").);
}
It worked! Thank you, man!
– Leandro Souza