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上载附件文件名乱码解决
热度:128 发布时间:2012-12-24 10:43:14.0
相关解决方案