W3C home > Mailing lists > Public > uri@w3.org > June 2008

Re: Error handling in URIs

From: Elliotte Harold <elharo@metalab.unc.edu>
Date: Fri, 27 Jun 2008 08:08:34 -0700
Message-ID: <48650272.3020104@metalab.unc.edu>
To: Ian Hickson <ian@hixie.ch>
Cc: Frank Ellermann <hmdmhdfmhdjmzdtjmzdtzktdkztdjz@gmail.com>, uri@w3.org

Ian Hickson wrote:

> That's what HTML5 did until about a week ago. The problem is that doing so 
> leaves a number of behaviours undefined, as far as I can tell. For 
> example, what should following the link in this example do, in terms of 
> the actual URI passed to the networking layer?
> 
>    <!DOCTYPE HTML>
>    <title>Test</title>
>    <meta charset="ISO-8859-13">
>    <p><a href="results.cgi/&#x017d;?&#x017d;">Test</a>
> 

Well, I can't do UTF-8 calculations in my head, but assuming that 
Unicode character 0x017D encodes in three bytes which are AA, BB, and 
CC, then it should request this path:

results.cgi/%AA%BB%CC?%AA%BB%CC

The meta tag is *NOT* considered here.

-- 
Elliotte Rusty Harold  elharo@metalab.unc.edu
Refactoring HTML Just Published!
http://www.amazon.com/exec/obidos/ISBN=0321503635/ref=nosim/cafeaulaitA
Received on Friday, 27 June 2008 15:09:13 GMT

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