1Response.Clear();
2 Response.Buffer = true;
3 Response.Charset = "gb2312";
4 Response.ContentEncoding = System.Text.Encoding.GetEncoding("GB2312");
5 Response.AppendHeader("content-disposition","attachment;filename=/"" + System.Web.HttpUtility.UrlEncode("中文名称",System.Text.Encoding.UTF8) + ".xls/"");
6 Response.ContentType = "Application/ms-excel";
7
最关健的一句就是:System.Web.HttpUtility.UrlEncode("中文名称",System.Text.Encoding.UTF8) + ".xls/"");