docName = new String(docName.getBytes("utf-8"), "iso8859-1");
response.setContentType("application/x-msdownload");
response.setHeader("Content-Length", String.valueOf(file.length()));
response.setHeader("Content-disposition", "attachment;filename="+ docName);
时间: 2024-10-30 05:36:39