开发者

Content-Disposition header and Cyrillic filename

header('Content-Disposition: attachment; filename="cyrilic_filename.ext"开发者_开发技巧');

is it possible somehow to set that it's an UTF-8 name? Or I'm to convert filename to ASCI?


Yes, it's possible, but doesn't work for all browsers yet. See http://greenbytes.de/tech/tc2231/, http://greenbytes.de/tech/webdav/rfc5987.html, and http://greenbytes.de/tech/webdav/draft-ietf-httpbis-content-disp-latest.html.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜