string 和Byte[]的转换
string strContent = "东软医疗系统有限公司zjq";
Byte[] utf8 = Encoding.UTF8.GetBytes(strContent);
Byte[] unicode = Encoding.Unicode.GetBytes(strContent);
Byte[] gb2312 = Encoding.GetEncoding("GB2312").GetBytes(strContent);
Console.WriteLine(utf8.Length.ToString()+"\r\n" + unicode.Length.ToString() +"\r\n"+ gb2312.Length.ToString());
string strUtf8 = Encoding.UTF8.GetString(utf8);
Console.WriteLine(strUtf8);
Console.ReadKey();