'2007/04'에 해당되는 글 1건

  1. 2007/04/03 캐릭터셋 확인

캐릭터셋 확인

Jsp 2007/04/03 21:40
String []charset = {"euc-kr", "ksc-5601", "iso-8859-1", "8859_1", "ascii",utf-8};
 for( int i = 0; i < charset.length; i++ )
 {
  for( int j = 0; j < charset.length; j++ )
  {
   if( i== j ) continue;
   System.out.print( charset[i] + " -> " + charset[i] + " : ");
   System.out.println( new String( filepath.getBytes(charset[i]), charset[j]));
  }
 }