[whatwg] a rel=attachment

On 2011-07-22 05:03, Hironori Bono (?? ??) wrote:
> Greetings all,
> 
> This is just out of curiosity.
> Would it be possible to give me the encoding used for this "download"
> attribute? I think we have several options when we use non-ASCII
> characters (this example uses Cyrillic characters) as the value of
> this attribute as listed below.
> 
> 1. Use the same encoding as the one used for the HTML content.
>    <a href="..."  download="????.png">????????? ????</a>
> (If we allow using '&#x...' format of HTML, it becomes:
>    <a href="..."  download="&#x444;&#x430;&#x439;&#x43B;.png">????????? ????</a>
> 
> 2. Use the URL encoding (same as the "href" attribute).
>    <a href="..."  download="%D1%84%D0%B0%D0%B9%D0%BB.png">????????? ????</a>
> 
> 3. Use RFC 2231 (same as the "content-disposition" header)
>    <a href="..."
> download="UTF-8''%D1%84%D0%B0%D0%B9%D0%BB.png">????????? ????</a>
> 
> Thank you for your help in advance.

It's the same as with any other HTML attribute.

The thing you mention in 3) is a special mechanism only needed in HTTP
header fields (btw updated by RFC 5987), and doesn't apply here.

Best regards, Julian

Received on Friday, 22 July 2011 00:22:56 UTC