<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>20407</bug_id>
          
          <creation_ts>2008-08-15 15:59:00 -0700</creation_ts>
          <short_desc>Safari/Webkit doesn&apos;t support Non US-ASCII filenames in Content-Disposition header</short_desc>
          <delta_ts>2008-08-15 16:54:10 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebCore Misc.</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>15287</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Robbie Paplin">rpaplin</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>88609</commentid>
    <comment_count>0</comment_count>
    <who name="Robbie Paplin">rpaplin</who>
    <bug_when>2008-08-15 15:59:00 -0700</bug_when>
    <thetext>As per RFC 2184 &amp; 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&apos;s say I want to download an image named 2008&amp;#24180;8&amp;#26376;8&amp;#26085;.jpg

The server should send down the following header

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

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=&quot;2008\345\271\2648\346\234\2108\346\227\245.jpg&quot;

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

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

I&apos;ve yet to see this work in Safari using any web application (I&apos;ve tried Gmail, Hotmail, Windows Live Skydrive) or any of the above methods.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88611</commentid>
    <comment_count>1</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2008-08-15 16:54:10 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of 15287 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>