孤独750 发表于 2017-1-31 13:41:11

Ajax get方式提交中文乱码(tomcat服务器)

页面编码:GBK
后台编码:GBK
tomcat: URIEncoding 属性,不设置
后台添加:

String value = new String (request.getParameter("params").getBytes("ISO-8859-1"),"GBK");
页: [1]
查看完整版本: Ajax get方式提交中文乱码(tomcat服务器)