解决代码:URLEncoder.encode("订单列表","UTF-8")
示例:
String fileName = "订单列表";
OutputStream outputStream = response.getOutputStream();
response.reset();
response.setHeader("Content-Disposition", "attachment; filename="+URLEncoder.encode(fileName,"UTF-8")+".xlsx");
response.setContentType("application/x-xls");
workbook.write(outputStream);
outputStream.close();