programming/jsp

[jsp] IE8 한글 인코딩

labj 2015. 5. 21. 10:30

[jsp] IE8 한글 인코딩


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/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E)


- (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) : ?ظ®Æ÷??