xml parsing - Android: How to traslate "http://www.google.com/ig/api?weather="+cityName xml to get weather in other language? -


i can't traslate informations weather in other language.

if change url

"http://www.google.com/ig/api?weather="+cityname 

in

"http://www.google.com/ig/api?hl=it&weather="+cityname 

to read information in italian following error:

org.apache.harmony.xml.expatparser$parseexception: @ line 1, column 537: not well-formed (invalid token) 

i don't understand why... tokens , nodes equal english ones (try both urls).

the code use here -> http://www.anddev.org/viewtopic.php?t=361

thank much...

u need replace "&" "&amp,"

like :

querystring.replace("&", "&amp,");   , = ; 

Comments

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -

delphi - How to convert bitmaps to video? -