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