当在javascript中使用了拼凑url传递参数中文乱码的话
使用encodeURI 转码俩次
var str = "中文乱码";
var url = "xxx.xx?" + encodeURI(encodeURI(str));
在接受的action中
使用URLDecoder.decode(name, "UTF-8"); 把javascript传递过来的参数转码。
String str = URLDecoder.decode(str, "UTF-8");
这样就能解决javascript传递参数乱码问题了