W3C home > Mailing lists > Public > ietf-http-wg@w3.org > July to September 2005

Re: location uri, ucs and the http scheme definition.

From: Julian Reschke <julian.reschke@gmx.de>
Date: Thu, 04 Aug 2005 12:19:48 +0200
Message-ID: <42F1EBC4.4010007@gmx.de>
To: Robert Collins <robertc@robertcollins.net>
CC: HTTP Working Group <ietf-http-wg@w3.org>

Robert Collins wrote:
> Hi,
> 	trying to determine the correct method to encode unicode characters
> into URI's in the Location: header....
> 
> std66 says that *new* URI Schemes should allow require UCS characters to
> be encoded as utf8, and then those that fall outside the unreserved set
> to be percent escaped.
> 
> The http:// scheme is as far as I can determine (maybe my google juice
> is failing me) specified by rfc2616 which doesn't mention UCS at all -
> it predate std66 by quite some time.
> 
> So: what is the correct encoding approach for non US-ASCII characters in
> HTTP URI's in Location: ?

What does this have to do with "Location"? A URI never ever contains 
non-ASCII characters, no matter where it appears.

That being said; the *best* way (if you control the server) to embed non 
ASCII data into a URI usually is to UTF-8 encode, then percent-escape.


Best regards, Julian
Received on Thursday, 4 August 2005 10:19:57 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 27 April 2012 06:49:40 GMT