cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: patch for file:// encoding on Windows

From: Patrik Fältström <paf_at_frobbit.se>
Date: Sun, 28 Sep 2014 11:31:42 +0200

On 28 sep 2014, at 10:44, Daniel Stenberg <daniel_at_haxx.se> wrote:

> So a question that would help me at least form my opinion on this better: given a unicode file name example like "ŕéüñíöñ", how does a file: URL that works with IE, Firefox and Chrome look like? I don't mean what it looks like in the URL bar, but if you copy it and paste it somewhere, what does that look like?
>
> In both Firefox and Chrome on Linux, such a file name in my home directory uses this URL:
>
> file:///home/daniel/%C5%95%C3%A9%C3%BC%C3%B1%C3%AD%C3%B6%C3%B1
>
> Percent-encoded UTF-8 it looks like to me.
>
> No "current code page" necessary. A single defined way how to decode it.

See work in IETF and W3C on Internationalized URIs, for example RFC 3987.

   Patrik

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html

Received on 2014-09-28