검색결과 리스트
JAVA/간편메서드에 해당되는 글 1건
- 2013.03.15 [코드변환]8859_1 -> UTF-8로 변환
/**
* 8859_1 -> UTF-8로 변환
*
* @param String str
* @return String
*/
public static String toKor(String str) {
if(str == null) return null;
String rtValue = null;
try {
rtValue = new String(str.toString().getBytes("8859_1"), "UTF-8");
} catch(java.io.UnsupportedEncodingException e) {
e.printStackTrace();
}
return rtValue;
}
RECENT COMMENT