public static String getConvertUTF_8(String str)
{
String sUTF_8 = "";
byte[] bytes = null;
try
{
bytes = str.getBytes("UTF-8");
sUTF_8 = new String(bytes);
}
catch(Exception ex)
{
}
return sUTF_8;
}
{
String sUTF_8 = "";
byte[] bytes = null;
try
{
bytes = str.getBytes("UTF-8");
sUTF_8 = new String(bytes);
}
catch(Exception ex)
{
}
return sUTF_8;
}
'JAVA' 카테고리의 다른 글
WebSphere에서 시스템 로그, 에러 로그 저장되는 위치 (0) | 2007.08.03 |
---|