일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
Tags
- 가우스
- node.js
- 선택적조인
- Eclipse
- Ajax
- PHP
- iBATIS
- WebLogic
- Android
- Struts
- dock
- JSON
- tomcat
- PLSQL
- ibsheet
- GPS
- oracle
- MFC
- appspresso
- Spring
- rowspan
- swingx
- MySQL
- JDOM
- Google Map
- sencha touch
- 전자정부프레임워크
- jQuery
- phonegap
- jsr 296
Archives
- Today
- Total
목록cookie (1)
Where The Streets Have No Name
JSP/Servlet에서의 Cookie에 한글값 쓰기
출처 : http://kimgisa.net/210 쿠키에 속성값을 한글로 저장하기 위해서는 몇가지 과정이 필요하다. 한글이나 특수문자, 그리고 유니코드들은 쿠키에 저장하기전에 URLEncoder 로 인코딩을 하고, 사용할 때 URLDecoder로 디코딩해주어야 한다. URLEncoder및 URLDecoder는 java.net 패키지에 있다. 다음은 서블릿에서의 예제이다. -------------------------- 1. 폼에서 서블릿으로 넘어온 값을 쿠키에 저장하는 예제 .... response.setContentType("text/html;charset=EUC-KR"); request.setCharacterEncoding("euc-kr"); String username = request.getPar..
Developement/Java
2008. 7. 1. 17:42