下面为大家提供两种解决方法:
1. response.setHeader ( "Content-Disposition","attachment;filename="+ java.net.URLEncoder.encode ( name,"utf-8" ) )
2. response.setHeader("Content-Disposition", "attachment; filename*=utf-8 ‘ ‘ "+URLEncoder.encode(name,"utf-8"));
文件下载--Content-Disposition--中文乱码
原文:https://www.cnblogs.com/Hubert-dzl/p/11156264.html