String recommendedName =new String(file.getBytes(), “ISO8859_1”);
response.reset();
response.setContentType(“application/vnd.ms-excel;charset=gb2312”);
response.setHeader("Pragma", "No-cache");
response.setHeader("Cache-Control", "no-cache");
response.setDateHeader("Expires", 0);
response.setHeader("Content-Disposition","attachment; filename="+ recommendedName +"\"");
求高人指点,急?
一只斗牛犬
有只小跳蛙
相关分类