Recent Posts
Recent Comments
방랑로그
[resin] 캐릭터 인코딩 설정 본문
[resin] 캐릭터 인코딩 설정
=====================================================================
Resin은 서버 자체에서 인코딩 Character Set을 설정 할수 있게 되어 있다.
<javac compiler="internal" ENCODING="UTF-8" args=""/>
<host-default>
<class-loader>
<compiling-loader path="webapps/WEB-INF/classes" ENCODING="UTF-8"/>
<host id="">
<character-ENCODING>UTF-8</character-ENCODING>
위의 세줄만 수정하면 Resin에서 처리되는 문자열은 지정한 ENCODING 타입으로 처리된다.
만약 MySQL을 사용한다면, MySQL의 접속 URL에 아래와 같이 사용해 주면 된다.
<database>
<jndi-name>jdbc/mysql</jndi-name>
<driver>
<type>com.mysql.jdbc.Driver</type>
<url>jdbc:mysql://localhost/test_db?user=mysql&password=mysql&useUnicode=true&characterENCODING=UTF-8</url>
'IT개발 > WAS & WEB SERVER' 카테고리의 다른 글
[weblogic] weblogic v.8.1 (0) | 2017.12.15 |
---|---|
[apm] apmsetup (0) | 2017.12.15 |
[xampp] 참고자료 (0) | 2017.12.15 |
Comments