//方法功能描述:判断是否是IE浏览器
    public boolean isMSBrowser(HttpServletRequest request) {
        String[] IEBrowserSignals = {"MSIE", "Trident", "Edge"};
        String userAgent = request.getHeader("User-Agent");
        for (String signal : IEBrowserSignals) {
            if (userAgent.contains(signal)){
                return true;
            }
        }
        return false;
    }

方法里面进行判断一下文件名

//判断是否是ie浏览器
                if(isMSBrowser(request)){
                    fileName = URLEncoder.encode(fileName, "UTF-8");
                }