美文网首页
tomcat中文乱码

tomcat中文乱码

作者: 旋转马达 | 来源:发表于2018-03-13 22:12 被阅读0次

    Tomcat7:
    URIEncoding
    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

    这个参数用来设置解码url参数,如果没指定,默认是ISO-8859-1。

    Tomcat8:
    URIEncoding
    This specifies the character encoding used to decode the URI bytes, after %xx decoding the URL. If not specified, UTF-8 will be used unless the org.apache.catalina.STRICT_SERVLET_COMPLIANCE system property is set to true in which case ISO-8859-1 will be used.
    这个参数用来设置解码url参数,如果没指定,默认是UTF-8,除非设置了org.apache.catalina.STRICT_SERVLET_COMPLIANCE这个系统参数为true,这个时候会使用ISO-8859-1。

    相关文章

      网友评论

          本文标题:tomcat中文乱码

          本文链接:https://www.haomeiwen.com/subject/owcpfftx.html