广州网站建设电话咨询,iis7 wordpress 伪静态,广州海珠做网站,怎么制作二维码里面的内容一、中文乱码原因
Tomcat默认是按ISO-8859-1进行URL解码#xff0c;ISO-8859-1并未包括中文字符#xff0c;中文字符不能被正确解析了。 二、配置编码
在tomcat的conf/server.xml下的connetor属性中增加URIEncoding或者useBodyEncodingForURI属性
#xff08;1#xff0…一、中文乱码原因
Tomcat默认是按ISO-8859-1进行URL解码ISO-8859-1并未包括中文字符中文字符不能被正确解析了。 二、配置编码
在tomcat的conf/server.xml下的connetor属性中增加URIEncoding或者useBodyEncodingForURI属性
1URIEncoding
This specifies the character encoding used to decode the URI bytes, after %xx decoding the URL. If not specified, ISO-8859-1 will be used.
译文这指定了用于解码URI字节的字符编码。如果没有指定将使用ISO-8859-1。 如
Server port8005 shutdownSHUTDOWN!-- 其他配置 --Service nameCatalinaConnector port8080 protocolHTTP/1.1 redirectPort8443 URIEncodingUTF-8 / !-- 其他配置 --/Service
/Server 2useBodyEncodingForURI
This specifies if the encoding specified in contentType should be used for URI query parameters, instead of using the URIEncoding.
译文这指定编码指定contentType应使用URI查询参数而不是使用URIEncoding。
如
Server port8005 shutdownSHUTDOWN!-- 其他配置 --Service nameCatalinaConnector port8080 protocolHTTP/1.1 redirectPort8443 useBodyEncodingForURItrue / !-- 其他配置 --/Service
/Server