摘要:
using System;using System.Collections.Generic;using System.Text;namespace NET.MST.Fourth.StringByte{ class StringByte { static void Main(string[] args) { String s = "我是字符串,I am string"; //字节数组转换到字符串 Byte[] utf8 = StringToByte(s, Encoding.UTF8); Byte[] gb2312 = StringToByte(s, Encoding.GetE 阅读全文