String contentType = ...;
try {
filename = MimeUtility.encodeText(filename, "UTF-8", "B");
} catch (UnsupportedEncodingException e) {
// ingore
}
response.setContentType(contentType);
response.setHeader("Content-disposition","attachment; filename=" + filename);
jsp下载附件文件名乱码解决
最新推荐文章于 2017-01-09 21:19:38 发布