W3C home > Mailing lists > Public > uri@w3.org > February 2010

Re: data URIs - filename and content-disposition

From: Michael A. Puls II <shadow2531@gmail.com>
Date: Wed, 24 Feb 2010 07:39:23 -0500
To: "Julian Reschke" <julian.reschke@gmx.de>
Cc: uri@w3.org
Message-ID: <op.u8mtfxb21ejg13@sandra-svwliu01>
On Wed, 24 Feb 2010 05:34:55 -0500, Julian Reschke <julian.reschke@gmx.de>  
wrote:

> did you make tests whether existing UAs properly parse (== ignore) new  
> parameters?

I tested more complex filename values and tested them raw and  
percent-encoded. (Not sure if the values should be percent-encoded before  
being placed in a data URI or not, in this case, so I tried both ways)

Fine in Opera, Safari and Firefox, but Firefox loses utf-8 encoding
data:text/plain;charset=utf-8;filename*=utf-8''%E2%88%9A.txt;content-disposition=attachment,%E2%88%9A

Fine in Opera, Safari and Firefox, but Firefox loses utf-8 encoding
data:text/plain;charset=utf-8;filename*=utf-8''%25E2%2588%259A.txt;content-disposition=attachment,%E2%88%9A

Fine in Opera, Safari and Firefox, but Firefox loses utf-8 encoding
data:text/plain;charset=utf-8;filename="=?UTF-8?B?4oiaLnR4dA==?=";content-disposition=attachment,%E2%88%9A

Fine in Opera, Safari and Firefox, but Firefox loses utf-8 encoding
data:text/plain;charset=utf-8;filename=%22%3D%3FUTF-8%3FB%3F4oiaLnR4dA%3D%3D%3F%3D%22;content-disposition=attachment,%E2%88%9A

Fine in Opera, Safari and Firefox, but Firefox loses utf-8 encoding
data:text/plain;charset=utf-8;filename="with  
spaces.txt";content-disposition=attachment,%E2%88%9A

Fine in Opera, Safari and Firefox, but Firefox loses utf-8 encoding
data:text/plain;charset=utf-8;filename=%22with%20spaces.txt%22;content-disposition=attachment,%E2%88%9A


-- 
Michael
Received on Wednesday, 24 February 2010 12:39:53 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:25:14 UTC