JAVA系列:POI 导出Excel时文件名中文乱码(兼容浏览器)
String agent = request.getHeader("USER-AGENT").toLowerCase();
response.setContentType("application/vnd.ms-excel");
String fileName = "文件名";
String codedFileName = java.net.URLEncoder.encode(fileName, "UTF-8");
if (agent.contains("fire...
原创
2021-02-27 00:24:04 ·
1421 阅读 ·
0 评论