if ( strSearchText != null ) {

String charset[] = {"euc-kr", "ksc5601", "iso-8859-1", "8859_1", "ascii", "utf-8"};

   

for(int k=0; k<charset.length ; k++){

for(int l=0 ; l<charset.length ; l++){

if(k==l){

continue;

}else{ 

out.println(charset[k]+" : "+charset[l]+" :"+new String(strSearchText.getBytes(charset[k]),charset[l])+"<br />");

}

}

}

'개발 > JAVA' 카테고리의 다른 글

myBatis selectone null 처리  (0) 2017.11.21
Spring VO 객제 복사 하기  (0) 2017.08.04
Java split 사용법  (0) 2017.04.05
eclipse에서 대소문자 단축키 세로영역 드래드 방법  (0) 2017.03.27
json vo객체에 list로 받기  (0) 2017.03.15

+ Recent posts