设置以下属性即可:
response.setHeader(“Content-disposition”, “attachment;filename=” + new String(fileName.getBytes(StandardCharsets.UTF_8),“ISO8859-1”));
Easyexcel文件下载时,中文名称显示为下划线
最新推荐文章于 2024-03-14 20:43:39 发布
设置以下属性即可:
response.setHeader(“Content-disposition”, “attachment;filename=” + new String(fileName.getBytes(StandardCharsets.UTF_8),“ISO8859-1”));