火狐导出execl文件名乱码解决方法

来源:互联网 发布:即时通讯软件怎么开发 编辑:程序博客网 时间:2024/06/08 16:26

1.火狐

response.setHeader("Content-Disposition", "attachment; filename="+ new String(fileName.getBytes("GB2312"),"ISO-8859-1"));

2.谷歌

response.setHeader("Content-Disposition", "attachment; filename="+Encodes.urlEncode(fileName));

原创粉丝点击