1、GBK编码字节流-->UTF-8编码字节流的转换: byte[] src,dst; dst = new String(src,"GBK").getBytes("UTF-8") 操作步骤就是:先解码:new String(src,"GBK")得到字符串;再使用getBytes("UTF-8")得到UTF-8编码字节数组