设置头文件

<%
response.setHeader( "Pragma ", "public");
response.setHeader( "Cache-Control ", "must-revalidate, post-check=0, pre-check=0 ");
response.addHeader( "Cache-Control ", "public ");
response.addHeader("Content-Disposition", "attachment; filename=posStatistic_export.xls");
response.setContentType("application/vnd.ms-excel.numberformat:@;charset=UTF-8");
%>

如果还有乱码

<meta http-equiv=Content-Type content="text/html; charset=utf-8">
<meta name=ProgId content=Excel.Sheet>
<meta name=Generator content="Microsoft Excel 11">

最新文章

  1. An App ID with Identifier &#39;com.XXX.XXX’ is not available. Please enter a different string.报错
  2. spring第一课,beans配置(中)——自动装配
  3. SSH项目与SSM项目的进入首页的方法
  4. sublime text配置记录
  5. shell 中的&gt;文件重定向符 和 标准输入、输出、错误以及 2&amp;1 的含义*
  6. golang获取字符串长度需要注意的地方
  7. Unieap3.5-JS常用方法
  8. thinkphp中SQLSTATE[42S02]: Base table or view not found: 1146 Table错误解决方法
  9. POJ 3671 Dining Cows (DP,LIS, 暴力)
  10. Bootstrap 列偏移\列嵌套\列排序
  11. nginx subrequest演示示例程序
  12. Eclipse插件的各种安装方法
  13. await和async更多的理解
  14. JAVA中double类型运算结果异常的解决
  15. cookie和sesssion
  16. jQuery检查复选框是否被选
  17. php api 接口
  18. (转)python+opencv实现动态物体追踪
  19. pyextend库-unpack列表集合字符串解包函数
  20. Fast File System

热门文章

  1. 前端知识点总结——CSS
  2. sgu 275 To xor or not to xor 线性基 最大异或和
  3. C#图解教程学习笔记——类和继承
  4. javascript 省市二级联动
  5. AC日记——线段树练习三 codevs 1082 (分块尝试)
  6. AC日记——[NOI2006]最大获利 bzoj 1497
  7. 牛客网 牛客小白月赛2 A.数字方阵-反魔方阵,梁邱构造法
  8. ui设计的好网站(转载)
  9. 洛谷——P1617 爱与愁的一千个伤心的理由
  10. superagent-promise