纸上得来终觉浅,绝知此事要躬行。

 

2013年11月1日

ASP.NET输出CSV文件乱码-解决方法

摘要: 平台 ASP.NETthis.Response.Clear();this.Response.Charset = "GB2312";this.Response.ContentEncoding = Encoding.GetEncoding("GB2312");this.Response.AddHeader("Content-Disposition",String.Format("attachment; filename=file-{0}.csv",DateTime.Now.ToShortDateString()));t 阅读全文

posted @ 2013-11-01 10:07 JRoger 阅读(744) 评论(0) 推荐(0) 编辑

导航