需要两个函数
1.字符串.getBytes("当前编码");//将字符串拆解
2. new String(拆解后字符串,"期望编码")//转码
如下:
new String(字符串.getBytes("ISO-8859-1"),"UTF-8");需要两个函数
1.字符串.getBytes("当前编码");//将字符串拆解
2. new String(拆解后字符串,"期望编码")//转码
如下:
new String(字符串.getBytes("ISO-8859-1"),"UTF-8");
被折叠的 条评论
为什么被折叠?