c#的打开文件无法显示中文字符问题!

在c#中用FileInfo.opentext()打开一个文本文件,显示时或者保存后文件中的中文字符全都变成了“?”,这是什么回事该怎么解决?谢谢!

---------------------------------------------------------------

System.Text.Encoding.GetEncoding("GB2312");
---------------------------------------------------------------

outFile = new StreamWriter ("c:\\abc.txt",false,Encoding.GetEncoding("gb2312"));

Please look here for more information.
http://expert.csdn.net/Expert/TopicView3.asp?id=1168027

Published At
Categories with Web编程
Tagged with
comments powered by Disqus