jsp中get(URI)方式提交表单的中文乱码解决方法

来源:互联网 发布:java中如何初始化数组 编辑:程序博客网 时间:2024/06/03 16:04

修改tomcat中~/conf/server.xml文件中的

 

<Connector port="80" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443"/>

<Connector port="80" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" URIEncoding="utf-8" />

就可以了

原创粉丝点击