摘要:
1、转换方法: //string 转 byte[] String str = "Hello"; byte[] srtbyte = str.getBytes(); // byte[] 转 string String res = new String(srtbyte); 2、注意事项:编码格式的设置。 阅读全文
posted @ 2019-09-27 11:10
被子里
阅读(16)
评论(0)
推荐(0)
摘要:
1、转换方法: //string 转 byte[] String str = "Hello"; byte[] srtbyte = str.getBytes(); // byte[] 转 string String res = new String(srtbyte); 2、注意事项:编码格式的设置。 阅读全文
posted @ 2019-09-27 11:10
被子里
阅读(16)
评论(0)
推荐(0)
|