摘要: 解决方法如下:1.在JS里对中文参数进行两次转码var login_name = document.getElementById("loginname").value; login_name = encodeURI(login_name); login_name = encodeURI(login_name); 2.在服务器端对参数进行解码String loginName = ParamUtil.getString(request, "login_name"); loginName = java.net.URLDecoder.decode(loginNa 阅读全文
posted @ 2013-04-24 21:11 NW_KNIFE 阅读(242) 评论(0) 推荐(0) 编辑