字符编码
摘要:
Encoding gb = Encoding.GetEncoding("GB2312"); byte[] bytes = System.IO.File.ReadAllBytes("gb.txt"); string str = gb.GetString(bytes); Console.WriteLine(str); byte[] utfBytes = Encoding.UTF8.GetBytes(str); System.IO.File.WriteAllBytes... 阅读全文
posted @ 2012-06-24 11:02 笑东风 阅读(218) 评论(0) 推荐(0) 编辑