在response 设置的属性设置:
response.setContentType("application/vnd.ms-excel;charset=utf-8");
try {
response.setHeader("Content-Disposition", "attachment;filename=" + new String(new String("文件名称").getBytes("UTF-8"), "ISO8859-1") + ".xlsx");
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
}
filename = new String(new String(“文件名称”).getBytes("UTF-8"),"ISO8859-1");