乱码有关-string.getBytes()

Posted on 2016-06-12 16:21  上善其若水,厚德载物  阅读(387)  评论(0)    收藏  举报

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

传输。。

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

博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3