日期:2014-05-18 浏览次数:20724 次
byte[] src = Encoding.UTF8.GetBytes((string)File.ReadAllText(path_1)); byte[] des = Encoding.Convert(Encoding.UTF8, Encoding.GetEncode("GB2312"), src); MessageBox.Show(Encoding.UTF8.GetString(des));
------解决方案--------------------
byte[] src = Encoding.UTF8.GetBytes((string)File.ReadAllText(path_1)); byte[] des = Encoding.Convert(Encoding.UTF8, Encoding.GetEncode("GB2312"), src); MessageBox.Show(Encoding.UTF8.GetString(des));