Web/JSP(Java Server Page)
[JSP] 한글변환 메서드
opid
2013. 7. 5. 09:18
parameter로 한글을 입력 받을 때, utf-8로 변환시켜 깨지지 않게하는 함수
// 한글을 변환하는 방법 String UStoKR(String str) throws Exception{ result = null; result = new String(str.getBytes("ISO-8859-1"), "utf-8"); |