编码:把字符串转换为byte数组。
解码:把byte数组转换为字符串。
一定要保证编码和解码的字符集相同,否则乱码。
转载于:https://www.cnblogs.com/wenxudong/p/6891195.html