How to display a non-ascii filename in the file download box in browsers?

前端 未结 6 1457
误落风尘
误落风尘 2020-12-19 04:52

There doesn\'t seem to be an accepted way of sending down a header parameter in non ascii format.

The header for file download usually looks like

Content-dis

6条回答
  •  春和景丽
    2020-12-19 05:34

    For Problem #2 you need to URL encode the file name for both Internet Explorer and Firefox. The only difference is that you need to use the format of RFC 2231 in Firefox. This applies to Firefox 3 and Internet Explorer 7.

提交回复
热议问题