当文件下载时包含中文名时需要进行编码。
String filename = new String(file.getName().getBytes(),"ISO-8859-1");
response.getHttpResponse().setHeader("Content-Disposition", "attachment;filename=" + filename);
当文件下载时包含中文名时需要进行编码。
String filename = new String(file.getName().getBytes(),"ISO-8859-1");
response.getHttpResponse().setHeader("Content-Disposition", "attachment;filename=" + filename);