개발 이야기/Java
[Hudson] Your container doesn't use UTF-8 to decode URLs
시반
2009. 9. 8. 09:22
Hudson을 설치하고 Hudson관리화면으로 이동하면 Your container doesn't use UTF-8 to decode URLs 이라는 빨간 색 글자가 보이는 경우가 있다. 말 그대로 웹서버 컨테이너가 UTF-8로 지정되어 있지 않습니다. 라고 알려주는 것.
해결방법은 허드슨 톰캣관련 문서에서 확인할 수 있었다.( http://wiki.hudson-ci.org/display/HUDSON/Tomcat )
i18n
Some versions of Tomcat (such as 5.0.28) uses iso-8859-1 to decode URLs, which is in a clear violation of the relevant RFCs. To fix this problem, add the following URIEncoding attribute to the connector definition in $TOMCAT_HOME/conf/server.xml.
<Connector port="8080" URIEncoding="UTF-8"/>
Other people reported that a presence of RequestDumperValve would also cause a problem.Related reads
2. John O'Conner's blog entry about his experiment. See Elliotte's comment in particular (elharo.)
Tomcat의 경우 인코딩타입을 명백하게 지정하지 않은 경우 기본값으로 iso-8859-1 를 사용하게 되기 때문에 $TOMCAT_HOME/conf/server.xml 의 Connector에 URIEncoding="UTF-8" 이라고 지정해주어야만 한다.