public static String here2There(String str) {
try {
if (str == null) {
return str;
}
return new String(str.getBytes("here"), "there");
} catch (Exception e) {
return null;
}
}
工具方法,将字符创由一种编码转换成另一种编码,UTF-8,GBK,ISO,BIG5。。。。。。
最新推荐文章于 2019-09-09 19:57:06 发布