[Webkit-unassigned] [Bug 20407] New: Safari/Webkit doesn't support Non US-ASCII filenames in Content-Disposition header

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Aug 15 15:59:00 PDT 2008


https://bugs.webkit.org/show_bug.cgi?id=20407

           Summary: Safari/Webkit doesn't support Non US-ASCII filenames in
                    Content-Disposition header
           Product: WebKit
           Version: 526+ (Nightly build)
          Platform: All
        OS/Version: Mac OS X 10.5
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: WebCore Misc.
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: rpaplin at msn.com


As per RFC 2184 & 2231, if one wants the web browser to properly display a
filename that contains Unicode characters in the File Download dialog box, you
must encode the filename as URL-encoded UTF-8 in the Content-Disposition field.

Let's say I want to download an image named 2008年8月8日.jpg

The server should send down the following header

Content-Disposition: attachment;
filename*="2008%e5%b9%b48%e6%9c%888%e6%97%a5.jpg"

In Firefox it works as expected (Note: it appears Firefox supports multiple
ways of encoding international filenames. For example, the following header
also gives the desired result.

Content-Disposition: attachment;
filename="2008\345\271\2648\346\234\2108\346\227\245.jpg"

In IE, if you omit it the asterisk after the filename filed it works (like
so)..

Content-Disposition: attachment;
filename="2008%e5%b9%b48%e6%9c%888%e6%97%a5.jpg"

I've yet to see this work in Safari using any web application (I've tried
Gmail, Hotmail, Windows Live Skydrive) or any of the above methods.


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list