JSON is returning strange characters in Android -


i implemented app gets data json. json returning me characters:

Âé...

how can return json:

áéíóú

instead of

Âé

private void parsejson(jsonobject json) {      nombreslista = new arraylist<hashmap<string, string>>();      if (json != null){          try {             jsonarray sitios = json.getjsonarray("sites");              (int = 0; < sitios.length(); i++) {                  jsonobject jsonobj = sitios.getjsonobject(i);                  string nombre = jsonobj.getstring("name");                  hashmap<string, string> lista = new hashmap<string, string>();                  lista.put("name", nombre);                 nombreslista.add(lista);             }         } catch (jsonexception e) {             e.printstacktrace();         }     }      (int = 0; < nombreslista.size(); i++) {          string nombre = nombreslista.get(i).get("name");         log.e("", "nombre = " + nombre);     }  } 


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -