解决后端导出excel表命名中文用不了的问题

还是编码格式的问题:
用utf-8就行了

response.addHeader("Content-Disposition", "attachment;filename=" + URLEncoder.encode(excelName,"utf-8"));
response.setContentType("application/vnd.ms-excel;charset=gb2312");

你可能感兴趣的:(idea项目,乱码,excel,unicode,url)