我是英文系统,代码如下,即使我把编码方式改成GB2312也还是乱码,怎么解决 response.AddHeader("Content-Disposition", string.Format("attachment;filename={0}", strFile)); response.Charset = "utf-8"; response.ContentType = "application/ms-excel"; response.ContentEncoding = System.Text.Encoding.GetEncoding("utf-8"); response.Write(sw); response.Flush(); response.End();
2 回答
- 2 回答
- 0 关注
- 441 浏览
添加回答
举报
0/150
提交
取消