2012년 1월 4일 수요일

[Jsp] Get 방식 파라미터 한글깨짐


Get방식으로 보내는데 한글깨짐 현상이 발생하여, 밑에방식으로 인코딩해서 보내봤더니 된다.

String lotNo = lotPlus(request);
String lotNo_En = java.net.URLEncoder.encode(lotNo, "UTF-8");
String URL = "test-run?LOT_NO=" + lotNo_En;

response.sendRedirect(URL);

아님 이거
encodeURIComponent(testname)

댓글 없음:

댓글 쓰기