让服务器下get提交不乱码

1、tomcat

D:\tomcat\apache-tomcat-6.0.32\conf\server.xml中修改Connector[protocol="HTTP/1.1"]元素

在元素中加URIEncoding="GBK"

2、jboss(EnterprisePlatform-5.1.1)

/app/jboss/EnterprisePlatform-5.1.1/jboss-eap-5.1/jboss-as/server/default/deploy/jbossweb.sar/server.xml修改Connector[protocol="HTTP/1.1"]元素

在元素中加URIEncoding="GBK"

3、weblogic

 <context-param>
  <param-name>weblogic.httpd.inputCharset./*</param-name>
  <param-value>GBK</param-value>
 </context-param>

猜你喜欢

转载自zoutuo1986.iteye.com/blog/1409220