我是英文系统,代码如下,即使我把编码方式改成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();
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();
解决方案 »
- asp.net oledb 连接db2 的sequences的问题,请指教
- 自定义控件的指令问题
- SQl2005 安装问题
- 用sqldatareader做gridview的数据源,不支持gridview的自分页~~
- owc控件怎么实现次坐标轴
- 在vs2005下面,我建立了ASP.net项目,为什么找不到Global.asax这个文件?我要用里面的几个事件,2003下面有这个文件
- 怎样完成这个任务?大家给些意见,谢谢!(高手!进来呐)(中手也进来)(低手快进来)
- 真正的技术问题。关于asp和asp.net的底层问题
- 急!!!panel的问题!!
- asp.net 怎样获取客户端所有已安装的打印机名
- httphandler在IIS中的部署问题(扩展名映射)
- datalist分页
做个定义,会解决乱码
做个定义,能解决乱码。