将iso-8859-1编码的字符串转换成utf-8

将iso-8859-1编码的字符串转换成utf-8

很简单只需要如下操作即可

String string= new String(string.getBytes("iso-8859-1"),"utf-8");

猜你喜欢

转载自blog.csdn.net/weixin_44235109/article/details/97798970
今日推荐