[webkit-dev] content-disposition, utf-8 and webkit

Darin Adler darin at apple.com
Sun Apr 12 19:36:45 PDT 2009


On Apr 12, 2009, at 7:08 PM, Andre-John Mas wrote:

> I am using the Webkit nightlies on MacOS X, and I noticed that the  
> following header doesn't seem to give the expected results:
>
> content-disposition: inline;  
> filename*="utf-8''%E8%92%99%E7%89%B9%E5%88%A9%E5%B0%94.vcf"
>
> In Firefox it provides me a filename with Chinese characters in it.  
> Safari/WebKit defaults to using the file name of the java servlet  
> that was called. So, given a servlet URL: http://localhost/myservlet.do
>
> Firefox: 蒙特利尔.vcf
> Safari/Webkit: myservlet.do
>
> Should I be opening a Webkit ticket for this, or a RADAR?

It should go in Radar, since currently the decoding of header fields  
is done by CFNetwork. The relevant RFC is 2231, I believe.

     -- Darin



More information about the webkit-dev mailing list