摘要: static void Main() { byte[] byt = System.Text.Encoding.Default.GetBytes("你好啊!Event");//string转换byte[] foreach (byte b in byt) { Console.WriteLine(b);//输出196,227,186,195,176,161,163,161,69,118,101,110,116,一个中文两个字节. } Consol... 阅读全文
posted @ 2011-11-22 15:29 Rookier 阅读(280) 评论(0) 推荐(0) 编辑