response.setContentType(“text/html;charset=UTF-8”);
response.setContentType(“application/octet-stream; charset=utf-8”);
response.setHeader(“Content-Disposition”, “attachment; filename=\”” + new String(fileName.getBytes(),”ISO-8859-1”) + “\”“);
response.setContentType(“APPLICATION/VND.MS-XCEL;charset=GBK”);
JAVA web 文件下载时 文件头设置
最新推荐文章于 2024-07-22 11:12:33 发布