字符串 (string)与字节数组(byte[])之间的转换-dcrenl 📅 2014年10月21日 👁 0 阅读 string str = "abc" //字符串转成编码为GB2312的byte[] byte[] pData =System.Text.Encoding.GetEncoding("GB2312").GetBytes(str); //byte[]转字符串 str = Encoding.Default.GetString(pData); 上一篇 SQL SERVER临时表的使用-dcrenl 下一篇 USB 3.0:那些你需要知道的事-dcrenl