JavaString对象编码转换

 String src = "中国人民解放军";

new String(src.getBytes("iso8859-1"),"gb2312");

 

 

你可能感兴趣的:(String)