将bytes数组转换成字符串乱码问题
请问为什么我将address.getAddress()得到的byte数组通过new String(address.getAddress())得到的字符串输出后是乱码的?即使是写成new String(address.getAddress(),"utf-8")也还是乱码的。(编译器默认的编码就是utf-8的)
请问为什么我将address.getAddress()得到的byte数组通过new String(address.getAddress())得到的字符串输出后是乱码的?即使是写成new String(address.getAddress(),"utf-8")也还是乱码的。(编译器默认的编码就是utf-8的)
2017-01-22
举报