2012年7月28日

Asp.NET导出Excel文件乱码解决方法

摘要: 最近做的一个Asp.net项目中需要在后台生成Excel时出现乱码的问题,但只出现在IE中。随后又就去网上查了一下csdn和cnblogs,得到的结果是,如下代码HttpResponse response = Page.Response;response.Clear();response.ContentType = "application/octet-stream";//使用UTF-8对文件名进行编码response.AppendHeader("Content-Disposition", "attachment;filename=\" 阅读全文

posted @ 2012-07-28 15:30 babukn 阅读(1537) 评论(3) 推荐(1)

导航