下面代码的字符串方法toCharArray的结果在Android 4.3中是2,其他的返回1,有人知道为什么吗?
byte[] SECRET_BYTES = {(byte) 0xfc, (byte) 0xbc};
Log.i("string", "SECRET_BYTES - " + SECRET_BYTES.length);
String txtPwd = new String(SECRET_BYTES, "UTF-8");
char[] charsPwd = txtPwd.toCharArray();
Log.i("string", "length of charsPwd - " + charsPwd.length);