page.Response.Clear();
page.Response.Buffer = true;
//page.Response.Charset = "GB2312";
page.Response.Charset = "UTF-8";
page.Response.AppendHeader("Content-Disposition", "attachment;filename=" +HttpUtility.UrlEncode(fileName));
page.Response.ContentEncoding = System.Text.Encoding.GetEncoding("utf-8");//设置输出流为简体中文
page.Response.ContentType = "application/ms-excel";//设置输出文件类型为excel文件。
page.EnableViewState = false;
page.Response.Write(strWriteValue.ToString());
HttpUtility.UrlEncode()可以保证输出中文字符正常