W3C home > Mailing lists > Public > uri@w3.org > February 2003

File URI questions

From: by way of Martin Duerst <Israel_Viente@il.vio.com>
Date: Thu, 20 Feb 2003 13:27:30 -0500
Message-Id: <4.2.0.58.J.20030220132725.056219e0@localhost>
To: uri@w3.org



Hi,

I have some questions on file URI.

1) I understood that there is no need to escape the ':' sign in examples like
<file:/e:/xxx.pdf>file:/e:/xxx.<file:/e:/xxx.pdf>pdf
file:///e:/xxx.pdf

but is it legal to have it escaped

<file:/e%3A/xxx.pdf>file:/e%3A/xxx.<file:/e%3A/xxx.pdf>pdf
file:///e%3A/xxx.pdf ?

And in general, is it allowed to escape even characters that are not 
reserved in this context ?

2) I understood that the sign '&' is not reserved except inside a query.
So in case I have a file name including space and '&' , should I escape the 
space to %20 and not escape the '&' ?

<file:/c:/test/George%20&%20Sons.doc>file:/c<file:/c:/test/George%20&%20Sons. 
doc>:/test/George%20&%20Sons.doc
or
<file:/c:/test/George%20%26%20Sons.doc>file:/c<file:/c:/test/George%20%26%20 
Sons.doc>:/test/George%20%26%20Sons.doc

3) About relative file URI.

I understood it should be something like

"./foo.pdf" without the <file://>file:// scheme.

But would <file:///./foo.pdf>file:///./foo.<file:///./foo.pdf>pdf be also 
legal ?

Thanks in advance

Israel
Received on Thursday, 20 February 2003 13:30:36 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 13 January 2011 12:15:31 GMT