导出附件中文乱码问题
String fileName = "产品项目列表-" + DateUtils.format(new Date()) + ".xlsx";
1、
response.setHeader("Content-disposition", "attachment;filename=" + java.net.URLEncoder.encode(fileName, "UTF-8"));
2、
response.setHeader("Content-disposition", "attachment;filena.
原创
2021-05-18 12:28:59 ·
214 阅读 ·
0 评论