强制转换就可以。
int len=bytes.length;
char [] arr=new char[len];
for(int i=0; i
}
char[] cs=new char(new byte[5]);
private char[] getChars (byte[] bytes)
{
Charset cs = Charset.forName ("UTF-8");
ByteBuffer bb = ByteBuffer.allocate (bytes.length);
bb.put (bytes);
bb.flip ();
CharBuffer cb = cs.decode (bb);
return cb.array();
}