是不是你的标题里面还有当前不认得编码。你改变一下编码试一下
Response.Charset="utf-8"; 
Response.AppendHeader("Content-Type", "Application/vnd.ms-Excel; charset=utf-8");
Response.ContentEncoding = System.Text.Encoding.GetEncoding("utf-8");//'解决中文乱码之关键

解决方案 »

  1.   

    utf-8?
    为了防止另存为,点“保存”时,保存下的文件会有乱码,
    都是用GB2312的吧Response.ContentEncoding = System.Text.Encoding.GetEncoding("GB2312");
      

  2.   

    Response.AppendHeader("content-disposition", "inline;filename=" + HttpUtility.UrlEncode(myReader[Column_Name].ToString()));这样肯定没问题
      

  3.   

    楼上的,多谢,可是我要实现的是可以以附件形式保存文件,也可以直接打开文件的
    我是这样写的:
    Response.ContentEncoding=System.Text.Encoding.GetEncoding("GB2312");Page.Response.AddHeader("Content-Disposition", "attachment;filename=" + HttpUtility.UrlEncode(fileName));这样写,如果另存为的话都正常,可是如果直接打开文件的话,文件标题都会变为编码后的字符。比如txt文件,内容都正常,但是标题栏显示的是一堆的字符,如下:
    %e5%b9%bf%e5%b2%9b%e4%b9%8b[1].txt
      

  4.   

    Response.AppendHeader("content-disposition", "inline;filename=" + HttpUtility.UrlEncode(YourFileName));
      

  5.   

    inline;?????我要以附件形式下载的,
    所以用attachment;
      

  6.   

    Response.AddHeader("Content-Disposition", "attachment; filename=" & Server.UrlPathEncode(FileName))