摘要:1、转换方法: //string 转 byte[] String str = "Hello"; byte[] srtbyte = str.getBytes(); // byte[] 转 string String res = new String(srtbyte); 2、注意事项:编码格式的设置。
阅读全文
搜索随笔分类
随笔档案
|
09 2019 档案
摘要:1、转换方法: //string 转 byte[] String str = "Hello"; byte[] srtbyte = str.getBytes(); // byte[] 转 string String res = new String(srtbyte); 2、注意事项:编码格式的设置。
阅读全文
|
Copyright @
2025 被子里
Powered by .NET 9.0 on Kubernetes
Powered by:
.Text and
ASP.NET
Theme by: .NET Monster