java文件下载文件名中文显示不正常or乱码问题
设置header的文件编码为utf-8 测试有效
String downloadName = URLEncoder.encode(fileName, "UTF-8");
response.setContentType("application/force-download");// 设置强制下载不打开
response.addHeader("Content-Disposition", "attachment;fileName=" + downloadName);// 设置文件名
response.setHeader("Context-Type", "application/xmsdownload");