java将ascii数组转成unicode字串

//转

byte[] bytes;

String str = new String(bytes, "GBK");

//回转

byte b;

b = (byte)str.charAt(0);

 

转载于:https://www.cnblogs.com/feilv/p/4070405.html

你可能感兴趣的:(java)