byte b[] = "你".getBytes("gb2312");
ByteToCharConverter convertor =
ByteToCharConverter.getConverter(encoding);
//将byte转到制定编码
char[] c = convertor.convertAll(b);
for (int i = 0; i < c.length; i++) {
System.out.println(c[i]+"--");
}