정리일자 : 2006.10.18(수)
정리자 : 제갈장비
자바 문자열 엔코딩 테스트 모음
String strTITLE01="";
String strTITLE02="";
String strTITLE03="";
String strTITLE04="";
String strTITLE05="";
String strTITLE06="";
String strTITLE07="";
String strTITLE08="";
String strTITLE09="";
String strTITLE10="";
String strTITLE11="";
String strTITLE12="";
String strTITLE13="";
try {
strTITLE01 = new String(title.getBytes("Shift_JIS"),"ISO-8859-1");
strTITLE02 = new String(title.getBytes("Shift_JIS"),"EUC-JP");
strTITLE03 = new String(title.getBytes("Shift_JIS"),"EUCJIS");
strTITLE04 = new String(title.getBytes("Shift_JIS"),"UTF-8");
strTITLE05 = new String(title.getBytes("ISO-8859-1"),"Shift_JIS");
strTITLE06 = new String(title.getBytes("ISO-8859-1"),"EUC-JP");
strTITLE07 = new String(title.getBytes("ISO-8859-1"),"EUCJIS");
strTITLE08 = new String(title.getBytes("ISO-8859-1"),"UTF-8");
strTITLE09 = new String(title.getBytes("ISO-8859-1"),"ISO-8859-1");
strTITLE10= new String(title.getBytes("UTF-8"),"Shift_JIS");
strTITLE11= new String(title.getBytes("UTF-8"),"EUC-JP");
strTITLE12= new String(title.getBytes("UTF-8"),"MS932");
strTITLE13= new String(title.getBytes("UTF-8"),"UTF-8");
System.out.println(strTITLE01);
System.out.println(strTITLE02);
System.out.println(strTITLE03);
System.out.println(strTITLE04);
System.out.println(strTITLE05);
System.out.println(strTITLE06);
System.out.println(strTITLE07);
System.out.println(strTITLE08);
System.out.println(strTITLE09);
System.out.println(strTITLE10);
System.out.println(strTITLE11);
System.out.println(strTITLE12);
System.out.println(strTITLE13);
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
}
- 끝 -