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

RE: URI and IRI Templating - encoding defaults

From: Mike Schinkel <mikeschinkel@gmail.com>
Date: Tue, 16 Jan 2007 12:18:13 -0500
To: "'Mark Nottingham'" <mnot@mnot.net>
Cc: <uri@w3.org>
Message-ID: <009201c73992$50056dd0$2102fea9@Guides.local>

Mark Nottingham wrote:
> ---8<---
> * The Foo URI Template
> 
> Foo is a URI template [RFCxxxx] that allows two (2) variables, "bar"  
> and "baz". For example;
> 
> <http://www.example.com/{bar}?arg={baz}>
> 
> The "bar" template variable should have any characters from the sub- 
> delim rule in [RFC3986] percent-encoded before template expansion.
> 
> The "baz" template variable should percent-encode the "&" and "#"  
> characters before template expansion.
> --->8---

I get lost on some of this stuff.  Are you saying that 

	bar="main"
	baz="us&arg2=ca#below-the-fold"
	http://www.example.com/{bar}?arg={baz}

Would end up looking like this

	http://www.example.com/main?arg=us%26arg2%3Dca%23below-the-fold

And NOT like this:

	http://www.example.com/main?arg=us&arg2=ca#below-the-fold

Correct?

-- 
-Mike Schinkel
http://www.mikeschinkel.com/blogs/
http://www.welldesignedurls.org/
"It never ceases to amaze how many people will proactively debate away
attempts to improve the web..."
Received on Tuesday, 16 January 2007 17:18:27 UTC

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