[Jsp] 한글 디코딩
2021. 1. 29.
JSP view 페이지에서 get 방식으로 넘어오는 한글 파라메터값
Decode 하기
<%
String temp_word = request.getParameter("temp_param");
pageContext.setAttribute("temp_el", java.net.URLDecoder.decode( temp_word, "UTF-8" ) );
// pageContext : java Spring의 modelMap 과 비슷한 역할.
%>
<span class="decoded_korean"> ${temp_el} </span>
'JAVA' 카테고리의 다른 글
[base64] 이미지 파일을 base64로 DB 입/출력 (0) | 2021.01.29 |
---|---|
[java] Unescape Html 유니코드 (0) | 2021.01.29 |
[InetAddress] 아이피 확인하는 함수 (0) | 2021.01.29 |
HTTPS 페이지 Document doc = Jsoup.connect().get() 으로 Json 파싱 (0) | 2021.01.29 |
[jstl] 정규식 태그 제거 replaceAll (0) | 2021.01.29 |