IE7 下载EXCEL注意地方

原本使用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")));
posted @ 2008-06-25 11:09  Anlycp  阅读(762)  评论(1编辑  收藏  举报