String strTitle = new String(locconfinfo.m_strTitle.getBytes("MS949"), "EUC-KR");//euc-kr 로 변환하여 한글깨짐 현상 방지
//String strTitle = locconfinfo.m_strTitle;//euc-kr 로 변환하여 한글깨짐 현상 방지
//한글 변환 테스트
Log.e("TEST", "[TEST] 변환전 :" + strTitle);
String charset[] = {"8859_1", "ascii", "UTF-8", "KSC5601", "EUC-KR", "MS949"};
for(int i=0; i<charset.length ; i++){
for(int j=0 ; j<charset.length ; j++){
if(i==j){
continue;
} else{
Log.e("TEST", "[TEST] " + charset[i]+" : "+charset[j]+" :" +new String (strTitle.getBytes(charset[i]),charset[j]));
}
} // inner for
} // outer for
Log.e("TEST", "===========================================================================");
'개발자이야기 > JAVA이야기' 카테고리의 다른 글
본받을 스터디 (0) | 2014.12.19 |
---|---|
java 기본 강의 좋은 블로그 (0) | 2014.12.01 |
xls,ppt to pdf (openoffice 활용) (0) | 2014.07.24 |
poi 관련 (0) | 2014.07.15 |
serialVersionUID 생성하기 (0) | 2014.07.01 |