W3C home > Mailing lists > Public > whatwg@whatwg.org > March 2013

Re: [whatwg] URL standard: Query string parsing; host parsing

From: <poccil14@gmail.com>
Date: Wed, 20 Mar 2013 19:52:13 -0400
Message-ID: <DE612B6B5C984C628E3507AD770E792F@PeterPC>
To: <whatwg@whatwg.org>
After rechecking the URI specification in RFC3986 I want to withdraw my question on query
string parsing.  Apparently I relied on the older RFC2396 syntax of URIs (through the java.net.URI
documentation) and naively assumed that the parsing of query strings in URIs remained unchanged.
Accordingly, the query string question is withdrawn.  However, I still have a question about
host parsing.  For convenience, I repeat that question here:

-- Host parsing and Unicode characters --

Rule 2 of the host parser says "Let host be the result of running utf-8's decoder on the percent decoding of input."  But the percent decoding algorithm only works on ASCII strings, and has undefined behavior on Unicode strings.  This may preclude the use of Unicode characters in host names, especially in IDNA, which probably isn't the intent.  Accordingly, should this rule and/or the percent decoding algorithm be redefined to allow Unicode characters here? (A related question is whether the URL standard should just go ahead and adopt Unicode Technical Standard 46 for IDNA, but that issue need not be answered now.)
Received on Wednesday, 20 March 2013 23:52:49 GMT

This archive was generated by hypermail 2.3.1 : Wednesday, 20 March 2013 23:52:49 GMT