我研究了一下背后的原因,发现这就是一个 IE(旧版)不支持标准,Chrome 兼容 IE 的错误做法,Firefox 支持的标准做法被无视的故事……
了解 Web 开发的朋友,可以参考以下网址了解这个故事的来龙去脉:
stackoverflow.com/questions/93551/how-to-encode-the-filename-parameter-of-content-disposition-header-in-http
greenbytes.de/tech/tc2231/
blogs.msdn.com/b/ieinternals/archive/2010/06/07/content-disposition-attachment-and-international-unicode-characters.aspx
由于我不怎么下载中文文件名的文件,所以也不知道应该向哪些网站吐槽没有遵守标准做法的问题,如果有朋友在一些网站遇到相应的困扰的话,不如把这些网站加进下面的这个 Google Docs 表格中:
docs.google.com/spreadsheet/ccc?key=0AiE2fZIwoHeDdEwwM0JzbXQwS0gxdmhwb2tQb01Ib3c&usp=sharing
我有时间会一一研究跟进。