使用的是高德地圖檩坚,獲取到中文地址后,傳遞到j(luò)ava端顯示亂碼诅福,如何解決呢匾委?
String address = getPara("address");
try {
address = new String(address.getBytes("ISO-8859-1"),"UTF-8");
} catch (UnsupportedEncodingException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}