下载时中文文件名乱码
String fileName = new String("测试预览pdf文件".getBytes(), "ISO-8859-1");//避免中文乱码
response.setHeader("Content-Disposition", "attachment;filename=".concat(String.valueOf(fileName) + ".pdf"));
String fileName = URLEncoder.encode("测试文件", "UTF-8");//避免中文乱码
response.setHeader("Content-Disposition", "attachment;filename=" + fileName + ".pdf");