110,535
社区成员
发帖
与我相关
我的任务
分享
byte buf[]=System.Text.Encoding.Default.GetBytes(s);//s就是字符串
string str = "測試文本";
byte[] bytes = Encoding.UTF8.GetBytes(str);
byte[] target = new byte[bytes.Length + 1];
bytes.CopyTo(target,0);