public static String toUTF8(String str){
String rt = null;
try {
if(str!=null){
rt = new String(str.getBytes("gbk"),"UTF-8");
}
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
}
return rt;
}
String rt = null;
try {
if(str!=null){
rt = new String(str.getBytes("gbk"),"UTF-8");
}
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
}
return rt;
}