原本使用IE6,写上
    response.setHeader("Content-Disposition", "attachment; filename=".concat(new String("test.xls"));//定义文件名 
可以下载EXCEL,而使用IE7后,无法下载,需要修改为
 response.setHeader("Content-Disposition", "attachment; filename=".concat(new String("test.xls".getBytes("gb2312"),"iso8859-1")));

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-25
  • 2021-12-06
  • 2021-04-05
  • 2022-01-18
猜你喜欢
  • 2022-01-16
  • 2021-12-07
  • 2021-06-23
  • 2021-12-08
  • 2021-07-01
  • 2022-12-23
  • 2021-07-11
相关资源
相似解决方案