大家好!
我想问一下 怎么解决这个问题:Visual Studio 2008 英文版 读不出来汉字(变成乱码)?
 谢谢

解决方案 »

  1.   

    我用sql 2008 英文版的代码里的汉字也显示乱码……
      

  2.   

    可能文件本身编码格式有问题可以先把文件转换一下格式在试一试或者设置一下 Visual Studio 2008 打开文件文件的编码方式
      

  3.   

    这种一般是编码问题.
    先把文件保存成utf-8吧...
      

  4.   

    sorry guys ! 说明一下:我用的操作系统,VS 2008 都是英文版的。
      

  5.   

    对的,我的也是乱码
    我的os,vs也都是英文环境。 读文本文件中的汉字出错主要是由于编码出的问题。您可以在初始化streamreader对象的时候指定它的编码,您可以参考以下如下的代码:   
      StreamReader   fSrd=   new   StreamReader   ("e:\\temp\\csdn.txt",Encoding.Default       );   
      关于streamreader构造函数详细的说明,请参看:   
      .NET   Framework   Class   Library       StreamReader   Constructor   (Stream,   Encoding)   
        
      http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemiostreamreaderclassctortopic4.asp 
      

  6.   

    hi guys i`v got a solution for English OP ,VS 2008  :(与#12楼类似的解决但不太一样)
    control panael => regional and language opions => Advanced  then choose chinese(PRC) . and then press ok, finally restart your PC . it works with me 
    after all thank to all of you !!!!!!!!!