乱码有关-string.getBytes()

字符串换变为字节数组string.getBytes("iso-8859-1");

传输。。

字节数组变为字符串new String(string.getBytes("iso-8859-1"),"utf-8");还原了string

原文地址:https://www.cnblogs.com/lonely-buffoon/p/5577964.html