java将ascii数组转成unicode字串

//转

byte[] bytes;

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

//回转

byte b;

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

 

posted @ 2014-11-03 08:57  feilv  阅读(995)  评论(0编辑  收藏  举报