The output char buffer is too small to contain the decoded characters, encoding 'Unicode (UTF-8)' fallback 'System.Text.DecoderReplacementFallback'.
Parameter name: chars一直好好的,今天突然出现这个错误。

解决方案 »

  1.   

    if (reader.PeekChar() == -1)
    判断读没读完
    就这儿,挂了
      

  2.   

    还有,我读的是一个EXCEL文件怎么搞文件编码啊???
      

  3.   

    我感觉主要问题出在“The output char buffer is too small”上,大大们帮帮看看啊。。
      

  4.   

    分不够??开新贴!!加分!http://community.csdn.net/Expert/topic/5651/5651659.xml?temp=.4135858
      

  5.   

    都不对哦,算了,不用PeekChar这个方法了,这好像是.net的一个Bug!改成这样的判断: reader.BaseStream.Position == reader.BaseStream.Length
      

  6.   

    reader.BaseStream.Position < reader.BaseStream.Length,这样才对,不是==