导出Excel表,文件名中文乱码
response.reset();
OutputStream toClient = new BufferedOutputStream(response.getOutputStream());
response.setContentType("application/x-msdownload");
String newName=new String((fileName+".xlsx").getBytes(),"ISO-8859-1");//设置编码
response.addHeader("Content-Disposition", "attachment;filename=" + newName );
response.addHeader("Content-Length", "" + newFile.length());
toClient.write(buffer);
toClient.flush();