アットウィキロゴ

Tomcatでエンコード設定を変更する場合

参考ページ

http://tidus.ultimania.org/wiki/index.php?Tomcat

  server.xmlのConnectorタグを編集する。

  • 例:
    <Connector
     port="8080"
     maxHttpHeaderSize="8192"
     maxThreads="150"
     minSpareThreads="25"
     maxSpareThreads="75"
     enableLookups="false"
     redirectPort="8443"
     acceptCount="100"
     connectionTimeout="20000"
     disableUploadTimeout="true"
     useBodyEncodingForURI="true"
     URIEncoding="UTF-8"
    />
    
  • 以下の2行が重要。
    useBodyEncodingForURI="true"
    URIEncoding="UTF-8"
    
最終更新:2008年11月10日 04:20