[jsp] IE9 한글 인코딩
logger.info("(1) : " + new String(temp.getBytes("8859_1"), "ksc5601") );
logger.info("(1) : " + new String(temp.getBytes("8859_1"), "utf-8") );
logger.info("(1) : " + new String(temp.getBytes("8859_1"), "UTF-8") );
logger.info("(1) : " + new String(temp.getBytes("8859_1"), "EUC-KR") );
logger.info("(1) : " + new String(temp.getBytes("8859_1"), "euc-kr") );
logger.info("(1) : " + new String(temp.getBytes("8859_1"), "KSC5601") );
logger.info("utf-8(1) : " + new String(temp.getBytes("utf-8"), "euc-kr"));
logger.info("utf-8(2) : " + new String(temp.getBytes("utf-8"), "ksc5601"));
logger.info("utf-8(3) : " + new String(temp.getBytes("utf-8"), "x-windows-949"));
logger.info("utf-8(4) : " + new String(temp.getBytes("utf-8"), "iso-8859-1"));
logger.info("utf-8(1) : " + new String(temp.getBytes("utf-8"), "EUC-KR"));
logger.info("utf-8(2) : " + new String(temp.getBytes("utf-8"), "KSC5601"));
logger.info("utf-8(3) : " + new String(temp.getBytes("utf-8"), "x-windows-949"));
logger.info("utf-8(4) : " + new String(temp.getBytes("utf-8"), "iso-8859-1"));
logger.info("iso-8859-1(1) : " + new String(temp.getBytes("iso-8859-1"), "euc-kr"));
logger.info("iso-8859-1(2) : " + new String(temp.getBytes("iso-8859-1"), "ksc5601"));
logger.info("iso-8859-1(3) : " + new String(temp.getBytes("iso-8859-1"), "x-windows-949"));
logger.info("iso-8859-1(4) : " + new String(temp.getBytes("iso-8859-1"), "utf-8"));
logger.info("euc-kr(1) : " + new String(temp.getBytes("euc-kr"), "ksc5601"));
logger.info("euc-kr(2) : " + new String(temp.getBytes("euc-kr"), "utf-8"));
logger.info("euc-kr(3) : " + new String(temp.getBytes("euc-kr"), "x-windows-949"));
logger.info("euc-kr(4) : " + new String(temp.getBytes("euc-kr"), "iso-8859-1"));
logger.info("ksc5601(1) : " + new String(temp.getBytes("ksc5601"), "euc-kr"));
logger.info("ksc5601(2) : " + new String(temp.getBytes("ksc5601"), "utf-8"));
logger.info("ksc5601(3) : " + new String(temp.getBytes("ksc5601"), "x-windows-949"));
logger.info("ksc5601(4) : " + new String(temp.getBytes("ksc5601"), "iso-8859-1"));
logger.info("x-windows-949(1) : " + new String(temp.getBytes("x-windows-949"), "euc-kr"));
logger.info("x-windows-949(2) : " + new String(temp.getBytes("x-windows-949"), "utf-8"));
logger.info("x-windows-949(3) : " + new String(temp.getBytes("x-windows-949"), "ksc5601"));
logger.info("x-windows-949(4) : " + new String(temp.getBytes("x-windows-949"), "iso-8859-1"));
logger.info("iso-8859-1 : " + new String(temp.getBytes("iso-8859-1"), "euc-kr"));
logger.info("x-windows-949(2) : " + new String(temp.getBytes("iso-8859-1"), "utf-8"));
logger.info("x-windows-949(3) : " + new String(temp.getBytes("iso-8859-1"), "ksc5601"));
logger.info("x-windows-949(4) : " + new String(temp.getBytes("iso-8859-1"), "iso-8859-1"));
결과 )
- User-Agent --> Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)
- (1) : 해리포터
- (1) : ?????
- (1) : ?????
- (1) : 해리포터
- (1) : 해리포터
- (1) : 해리포터
- utf-8(1) : ??쨍짰?첨??
- utf-8(2) : ??쨍짰?첨??
- utf-8(3) : 횉횠쨍짰횈첨횇횒
- utf-8(4) : ?????¸?®???·????
- utf-8(1) : ??쨍짰?첨??
- utf-8(2) : ??쨍짰?첨??
- utf-8(3) : 횉횠쨍짰횈첨횇횒
- utf-8(4) : ?????¸?®???·????
- iso-8859-1(1) : 해리포터
- iso-8859-1(2) : 해리포터
- iso-8859-1(3) : 해리포터
- iso-8859-1(4) : ?????
- euc-kr(1) : ?ظ®Æ÷??
- euc-kr(2) : ???????????
- euc-kr(3) : ?ظ®Æ÷??
- euc-kr(4) : ?¨ª????¨¡¡???
- ksc5601(1) : ?ظ®Æ÷??
- ksc5601(2) : ???????????
- ksc5601(3) : ?ظ®Æ÷??
- ksc5601(4) : ?¨ª????¨¡¡???
- x-windows-949(1) : ?ظ®Æ÷??
- x-windows-949(2) : ???????????
- x-windows-949(3) : ?ظ®Æ÷??
- x-windows-949(4) : ?¨ª????¨¡¡???
- iso-8859-1 : 해리포터
- x-windows-949(2) : ?????
- x-windows-949(3) : 해리포터
- x-windows-949(4) : ?ظ®Æ÷??
'programming > jsp' 카테고리의 다른 글
[jsp] IE11 한글 인코딩 (0) | 2015.05.21 |
---|---|
[jsp] IE10 한글 인코딩 (0) | 2015.05.21 |
[jsp] IE8 한글 인코딩 (0) | 2015.05.21 |
[jsp] 윈도우 openssl 톰캣 사설인증서 설치 (0) | 2015.04.23 |
[tomcat] error - Choose unique values for the 'webAppRootKey' context-param in your web.xml files (0) | 2015.03.19 |