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

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

Kivy: Swiping (Carousel & ScreenManager) -