Re: URI and IRI Templating - encoding defaults

On 2007/02/17, at 5:48 AM, Joe Gregorio wrote:
>>
>> I agree that embedding encoding information isn't desirable, but  
>> using:
>>
>> >   Characters outside ( iprivate | iunreserved | '@' | ':' | '/' )
>> > are % encoded.
>>
>> as the default encoding rule means that sub-delims ("!" / "$" / "&" /
>> "'" / "(" / ")" / "*" / "+" / "," / ";" / "=") will *always* be
>> encoded when expanded from templates; there won't be any way to have
>> these perfectly legal characters appear in template-generated URIs.
>
> They will appear, it just means that they will be percent-encoded,  
> that is, you
> can't use them as delimiters.

...and some people / formats / schemes want to use them exactly as  
that. That's what they're there for.

> The same is true for all the examples you listed.

Yes, but as soon as someone needs to disambiguate between data and  
delimiter, they'll have a problem.

> True, you can't have template values span multiple components, but
> I thought we had already decided against that use case.

I'm not talking about having templates span multiple components.



--
Mark Nottingham     http://www.mnot.net/

Received on Saturday, 17 February 2007 02:51:02 UTC