http 请求中的中文乱码

来源:互联网 发布:手机dsp调音软件 编辑:程序博客网 时间:2024/05/29 08:10

 在js中转码 然后在action里面解码。

转码:url= action.do?code=" + encodeURI(encodeURI(“中文“));

解码:java.net.URLDecoder.decode( form.getCode(), "UTF-8"));