Nginx + Tomcat 搜索中文亂碼的問題

1. 在Nginx 的conf/nginx.conf   設置使用的字符集。 nginx

      server { server

        ..... xml

        charset utf-8,gbk; utf-8

      } io

2. 在Tomcat的 conf/server.xml 設置字符集 coding

    ..... im

  <Connector port="8081" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443"  URIEncoding="UTF-8"/> di

   ...... 字符集

相關文章
相關標籤/搜索