[whatwg] a rel=attachment
Julian Reschke
julian.reschke at gmx.de
Fri Jul 22 00:22:56 PDT 2011
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="файл.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
More information about the whatwg
mailing list