第一步
unction changcity(city,citys){
window.location="homeSell.do?operate=search&city="+encodeURIComponent(city)+"&citys="+encodeURIComponent(citys);
}
jsp页面中用encodeURIComponent()转码
第二步
String str = java.net.URLDecoder.decode(str, "UTF-8");
后台java页面