js将中文进行编码,如下:
window.encodeURI(window.encodeURI(name))
再通过java解码,如下:
java.net.URLDecoder.decode(name,"UTF-8");//utf-8根据项目编码进行设置
js将中文进行编码,如下:
window.encodeURI(window.encodeURI(name))
再通过java解码,如下:
java.net.URLDecoder.decode(name,"UTF-8");//utf-8根据项目编码进行设置