使用Tomcat页面乱码问题

Tomcat版本:6.0.32

页面及代码编码:UTF-8

问题描述:

    表单中一些元素未出现乱码问题,select等选择器获取text时数据保存正确,请求返回时值正确,但是显示出来变为乱码。

解决方法:

    Tomcat配置文件server.xml中(参考:http://developer.51cto.com/art/200906/132667.htm

<Connector port="8080" 
           protocol="HTTP/1.1"
           connectionTimeout="20000"   
       redirectPort
="8443" useBodyEncodingForURI="true" />
原文地址:https://www.cnblogs.com/GYoungBean/p/2678500.html