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

Re: percent-encoding in tel URIs

From: Frank Ellermann <nobody@xyzzy.claranet.de>
Date: Mon, 30 Jun 2008 10:41:56 +0200
To: uri@w3.org
Message-ID: <g4a63l$tkg$1@ger.gmane.org>

Erik Wilde wrote:

> reuse the phone number definition in the tel URI scheme

| local-number-digits  =
|     *phonedigit-hex (HEXDIG / "*" / "#")*phonedigit-hex

TILT, game over.  I think that was never correct, compare
RFC 2396 section 2.4.3 "excluded US-ASCII Charactes".  

Simplified, after an <authority>, if you use this, you
have to match a path/query/fragment structure, even if 
you don't need any path/query/fragment.  In the "path"
you can use any <pchar> as is.  Notably not "/" (unless
it separates path-segments), not "?" (starts a <query>),
not "#" (starts a <fragment>).  As soon as you are in
the <query> you can also use "/" and "?" as is, but not
"#" (still starts a <fragment>).

Some VCHARs are *never* okay, e.g., "<", ">", "{", "}",
and '"'.  Wherever you are in the URL, they have to be
percent-encoded.  Ditto "[" and "]" unless they delimit
IPv6- or IPvFuture literals in the <authority>.

IIRC "#" is also never allowed as is, unless it starts
a <fragment>.  If you want to use tel: maybe start with
a 3966bis (?)

Received on Monday, 30 June 2008 08:40:11 UTC

This archive was generated by hypermail 2.4.0 : Sunday, 10 October 2021 22:17:51 UTC