'tomcat encoding'에 해당되는 글 1건

  1. 2014.05.27 jsp get방식 utf-8인데 한글 안될경우
Programming/jsp2014. 5. 27. 22:08
server.xml 에서  URIEncoding=UTF-8로 추가해주면 된다.
[링크 : http://blog.daum.net/feelsogreat/86]



안넣으면 당연히 UTF-8로 될 줄 알았는데 ISO-8859라니!!!!

How do I change how GET parameters are interpreted?

Tomcat will use ISO-8859-1 as the default character encoding of the entire URL, including the query string ("GET parameters").

There are two ways to specify how GET parameters are interpreted:

  1. Set the URIEncoding attribute on the <Connector> element in server.xml to something specific (e.g. URIEncoding="UTF-8").

  2. Set the useBodyEncodingForURI attribute on the <Connector> element in server.xml to true. This will cause the Connector to use the request body's encoding for GET parameters.

References: Tomcat 7 HTTP ConnectorTomcat 7 AJP Connector

[링크 : http://wiki.apache.org/tomcat/FAQ/CharacterEncoding]



'Programming > jsp' 카테고리의 다른 글

quantumDB csv import / date  (0) 2014.06.17
계층형 게시판 로직  (1) 2014.06.04
스트러츠2 사용시 브라우저 상의 현재 경로얻기 2  (0) 2014.05.27
ajax / innerHTML onload  (0) 2014.05.23
jsp:forward 와 request.sendRedirect()  (0) 2014.05.21
Posted by 구차니