String fileName = "2014毕设.xls";
fileName = new String(fileName.getBytes("GBK"),"ISO8859_1");
response.setHeader("Content-Disposition", "attachment;filename=" + fileName);
java 下载文件解决文件名乱码问题
最新推荐文章于 2023-12-11 15:50:39 发布
String fileName = "2014毕设.xls";
fileName = new String(fileName.getBytes("GBK"),"ISO8859_1");
response.setHeader("Content-Disposition", "attachment;filename=" + fileName);