使用URLEncoder.encode("(1)班")下载的文件名会变成%281%29班格式
response.setHeader("Content-Disposition", "attachment; filename="+Encodes.urlEncode(fileName));
解决办法:
response.setHeader("Content-Disposition", "attachment; filename="+new String(fileName.getBytes("gbk"), "ISO8859-1"))