文件下載同時兼容ie,Firefox,chrome方法:
response.setHeader("Content-Disposition", "attachment;filename*=utf-8'zh_cn'" + URLEncoder
.encode(fileName, UTF8));
前端js中對文件名進行編碼:encodeURI(fileName)
文件下載同時兼容ie,Firefox,chrome方法:
response.setHeader("Content-Disposition", "attachment;filename*=utf-8'zh_cn'" + URLEncoder
.encode(fileName, UTF8));
前端js中對文件名進行編碼:encodeURI(fileName)