解决tomcat中文传输乱码问题
进入server.xml文件,找到
<Connector URIEncoding="utf-8" encoding="utf-8" connectionTimeout="20000" port="80" protocol="HTTP/1.1" redirectPort="8443"/>
添加URIEncoding="utf-8" encoding="utf-8"这两个属性,重新运行项目。ok!!!
进入server.xml文件,找到
<Connector URIEncoding="utf-8" encoding="utf-8" connectionTimeout="20000" port="80" protocol="HTTP/1.1" redirectPort="8443"/>
添加URIEncoding="utf-8" encoding="utf-8"这两个属性,重新运行项目。ok!!!
本文标题:tomcate 前台传输中文变成乱码
本文链接:https://www.haomeiwen.com/subject/eedpohtx.html
网友评论