요거 중에 하난 걸린다!!!!!!!!!!!!!!!!!!!!!!!
String mydoc = "";
System.out.println("=========1==============");
System.out.println(new String((mydoc.toString()).getBytes("KSC5601"), "8859_1"));
System.out.println("=========2==============");
System.out.println(new String((mydoc.toString()).getBytes("KSC5601"), "EUC-KR"));
System.out.println("=========3==============");
System.out.println(new String((mydoc.toString()).getBytes("8859_1"), "EUC-KR"));
System.out.println("=========4==============");
System.out.println(new String((mydoc.toString()).getBytes("8859_1"), "KSC5601"));
System.out.println("=========5==============");
System.out.println(new String((mydoc.toString()).getBytes("EUC-KR"), "KSC5601"));
System.out.println("=========6==============");
System.out.println(new String((mydoc.toString()).getBytes("EUC-KR"), "8859_1"));
System.out.println("=========7==============");
System.out.println(new String((mydoc.toString()).getBytes("UTF-8"), "KSC5601"));
System.out.println("=========8==============");
System.out.println(new String((mydoc.toString()).getBytes("UTF-8"), "8859_1"));
System.out.println("=========9==============");
System.out.println(new String((mydoc.toString()).getBytes("UTF-8"), "EUC-KR"));
System.out.println("=========10==============");
System.out.println(new String((mydoc.toString()).getBytes("KSC5601"), "UTF-8"));
System.out.println("=========11==============");
System.out.println(new String((mydoc.toString()).getBytes("8859_1"), "UTF-8"));
System.out.println("=========12==============");
System.out.println(new String((mydoc.toString()).getBytes("EUC-KR"), "UTF-8"));
System.out.println("=======================");
String mydoc = "";
System.out.println("=========1==============");
System.out.println(new String((mydoc.toString()).getBytes("KSC5601"), "8859_1"));
System.out.println("=========2==============");
System.out.println(new String((mydoc.toString()).getBytes("KSC5601"), "EUC-KR"));
System.out.println("=========3==============");
System.out.println(new String((mydoc.toString()).getBytes("8859_1"), "EUC-KR"));
System.out.println("=========4==============");
System.out.println(new String((mydoc.toString()).getBytes("8859_1"), "KSC5601"));
System.out.println("=========5==============");
System.out.println(new String((mydoc.toString()).getBytes("EUC-KR"), "KSC5601"));
System.out.println("=========6==============");
System.out.println(new String((mydoc.toString()).getBytes("EUC-KR"), "8859_1"));
System.out.println("=========7==============");
System.out.println(new String((mydoc.toString()).getBytes("UTF-8"), "KSC5601"));
System.out.println("=========8==============");
System.out.println(new String((mydoc.toString()).getBytes("UTF-8"), "8859_1"));
System.out.println("=========9==============");
System.out.println(new String((mydoc.toString()).getBytes("UTF-8"), "EUC-KR"));
System.out.println("=========10==============");
System.out.println(new String((mydoc.toString()).getBytes("KSC5601"), "UTF-8"));
System.out.println("=========11==============");
System.out.println(new String((mydoc.toString()).getBytes("8859_1"), "UTF-8"));
System.out.println("=========12==============");
System.out.println(new String((mydoc.toString()).getBytes("EUC-KR"), "UTF-8"));
System.out.println("=======================");
'development > java' 카테고리의 다른 글
Map Iterator 상호 변환 (0) | 2010.04.19 |
---|---|
getOutputStream 오류 (0) | 2010.04.19 |
클래스에서 메소드 가져오기 (0) | 2010.04.19 |
jdk 1.4 와 5.0 rt.jar 내의 xml-api.jar 버젼 (0) | 2010.04.19 |
PDF 만들기 (0) | 2010.04.19 |