1.string to byte[]
System.Text.Encoding.UTF8.GetBytes(string s);
2.byte[] to string
System.Text.Encoding.UTF8.GetString(byte[] bytes, int index, int count)
c# byte[] string 转换
最新推荐文章于 2024-11-10 11:25:41 发布
1.string to byte[]
System.Text.Encoding.UTF8.GetBytes(string s);
2.byte[] to string
System.Text.Encoding.UTF8.GetString(byte[] bytes, int index, int count)