标签:
解决方法:
思路:
参数在web脚本encodeURI()编码两次。action层接收参数时用java.net.URLDecoder.decode(var,"UTF-8") 解码;
例子:
web端:
var name="汉字";
request:url?var=encodeURI(encodeURI(name));
后台:
action层接受参数:name=java.net.URLDecoder.decode(name,"UTF-8") ;即可
标签:
原文地址:http://www.cnblogs.com/ahguSH/p/4802111.html