W3C home > Mailing lists > Public > uri@w3.org > September 2009

Re: [Uri-review] [hybi] ws: and wss: schemes

From: Martin J. Dürst <duerst@it.aoyama.ac.jp>
Date: Fri, 18 Sep 2009 18:18:50 +0900
Message-ID: <4AB3507A.7050802@it.aoyama.ac.jp>
To: Julian Reschke <julian.reschke@gmx.de>
CC: Ian Hickson <ian@hixie.ch>, URI <uri@w3.org>, hybi@ietf.org, uri-review@ietf.org, "public-i18n-core@w3.org" <public-i18n-core@w3.org>, "public-iri@w3.org" <public-iri@w3.org>
On 2009/09/17 20:39, Julian Reschke wrote:
> Ian Hickson wrote:

>> Encoding considerations.
>> Characters in the host component that are excluded by the syntax
>> defined above must be converted from Unicode to ASCII by applying
>> the IDNA ToASCII algorithm to the Unicode host name, with both the
>> AllowUnassigned and UseSTD3ASCIIRules flags set, and using the
>> result of this algorithm as the host in the URI.

I think this has various problems.

First, it is fixed to IDNA 2003 (I think I may have said this already). 
IDNA 2008 is around the door. It doesn't use terms such as "ToASCII" or 
"AllowUnassigned".

Second, if this is about resolution (rather than about generic 
conversion), and because this is a new scheme, it should not exclude the 
case that some part of a domain name (reg-name) is percent-encoded, 
because both RFC 3986 and 3987 allow this.

Third, wording this as "characters" seems to say that this is a 
character-by-character operation, or that it might be applied to 
subsequent non-ASCII characters in groups, but ToASCII, when used, has 
to be applied to whole labels, not characters.

Fourth, as http://tools.ietf.org/html/draft-iab-idn-encoding-00 shows in 
more detail, assuming that DNS is always used for resolution of 
reg-names, and the technology will never be used e.g. on intranets with 
other resolution services seems to be unnecessarily restrictive.

Ideally, all the above points should be addressed by some work on the 
IRI front (public-iri@w3.org cc'ed), but that work isn't done yet.


>> Characters in other components that are excluded by the syntax
>> defined above must be converted from Unicode to ASCII by first
>> encoding the characters as UTF-8 and then replacing the
>> corresponding bytes using their percent-encoded form as defined in
>> the URI and IRI specification. [RFC3986] [RFC3987]
>
> I think that's good, except that the mention of IRI in the last sentence
> seems to be superfluous. RFC3986 already defines everything that is
> needed here. Or is there something specific from the IRI spec you think
> is relevant? (In which case it should state that more clearly).

RFC 3986 indeed defines how to use %-encoding, but except for domain 
names (which are not involved in this case), it does not specify UTF-8, 
which is only done in RFC 3987.

Regards,    Martin.

-- 
#-# Martin J. Dürst, Professor, Aoyama Gakuin University
#-# http://www.sw.it.aoyama.ac.jp   mailto:duerst@it.aoyama.ac.jp
Received on Friday, 18 September 2009 09:19:55 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 13 January 2011 12:15:42 GMT