处理下载是文件名乱码正确姿势

String fileName="智能客服运营日报-模板.xlsx";
response.setContentType("multipart/form-data;charset=UTF-8");
response.setHeader("Content-Disposition", "attachment; fileName="+ fileName +";filename*=utf-8''"+ URLEncoder.encode(fileName,"UTF-8"));
posted on 2019-04-18 09:50  知了不了了之  阅读(446)  评论(0编辑  收藏  举报