windows系统下,网页下载文件,弹窗文件名乱码问题的解决

/响应头1.弹窗附件 2.文件的MIME类型
 response.setHeader("Content-Disposition","attachment;filename="+new String(filename.getBytes("gbk"), "ISO8859-1")); 
String mimeType = servletContext.getMimeType(filename);

你可能感兴趣的:(windows系统下,网页下载文件,弹窗文件名乱码问题的解决)