Tomcat : GET Request 한글문제 설정

<Connector port=”8080″ protocol=”HTTP/1.1″
connectionTimeout=”20000″
redirectPort=”8443″ useBodyEncodingForURI=”true” URIEncoding=”UTF-8″ />

아니면 일일이 쓰던지….

if(request.getMethod().equals(“GET”) && searchWord != null){
System.out.println(searchWord);
searchWord = new String(searchWord.getBytes(“8859_1”), “UTF-8”);
System.out.println(searchWord);
}

 

Leave a Reply

Your email address will not be published.