摘要:
问题描述:Java应用下载文件功能,输出文件名中的中文乱码 测试环境:tomcat,websphere6.1 方法一: response.setContentType("application/x-download"); fileName = URLDecoder.decode(fileName, "utf-8"); fileName= java.net.URLEncoder.encode(fileName,"utf-8"); response.setHeader("Content-Disposition", "attachment; filename=\""+ new String((fil 阅读全文