W3C home > Mailing lists > Public > uri@w3.org > January 2007

Re: URI and IRI Templating - encoding defaults

From: Stefan Eissing <stefan.eissing@greenbytes.de>
Date: Thu, 18 Jan 2007 12:53:25 +0100
Message-Id: <67DA48B5-DE6F-4C77-A699-CB5AABBD22D1@greenbytes.de>
Cc: Mike Schinkel <mikeschinkel@gmail.com>, <uri@w3.org>
To: Mark Nottingham <mnot@mnot.net>

Am 17.01.2007 um 23:40 schrieb Mark Nottingham:

> Mike (and Stafan) have it right.
> Mike, it's basically saying that to figure out how to encoding  
> things, you'll need to consider the way that the template is  
> intended to be used -- so you'll need to follow its instructions.  
> Considering that you'll already be doing so for other reasons  
> (e.g., to figure out what to put in each variable, semantic-wise as  
> well as for any variable-specific syntactic considerations), it's  
> not too onerous.

I was thinking of how Mike's webforms templates would work then:


Obviously the browser would have to escape some of the user input  
when converting the template into a valid URI. Besides the uri  
escaping of non-ascii chars, there are the special ones to consider,  

http://example.com/{string}?test=123   // browser needs to escape '?'  
in string

http://example.com/abc?test={string}&xxx=123  // browser needs to  
escape '&+'

Question: is it worthwhile to define escaping rules for params that  
are definitely part of a query (or precede a query). Or is this  
something to be handled in a possible WebForms2.0 specification?


Received on Thursday, 18 January 2007 11:53:40 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:25:10 UTC