赞
踩
string转化为byte[]数组
String str = "abcd";
byte[] bs = str.getBytes();
byte[]数组转化为string字符串
/*String str1 = "abcd";
byte[] bs1 = str1.getBytes();*/
byte[] bs1 = {97,98,100};
String s = new String(bs1);
设置格式
byte[] srtbyte = {97,98,98};
String res = new String(srtbyte,"UTF-8");
---------------------
作者:先行再知唯心永静
来源:CSDN
原文:https://blog.csdn.net/qq_30060779/article/details/79570652
版权声明:本文为博主原创文章,转载请附上博文链接!
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。