Java导出excel表文件名称中文乱码

在response中添加设置:

response.setContentType("application/octet-stream;charset=utf-8");

response.setHeader("Content-Disposition", "attachment;filename="+ new String(fileName.getBytes(),"iso-8859-1") + ".xls");

你可能感兴趣的:(Java)