On Fri, Sep 19, 2003 at 07:45:14AM -0700, Gisle Aas wrote: > > The change is the following: > > > > a path name of the form D:/dir/filename is encoded as > > file:///D:/dir/filename > > > > a path name extracted from an URL contains slashes. > > > > AFAIU, this form of the file URL is the suggested one - and it is > > supported by all the browsers I checked (lynx, explorer and netscape). > > The current behaviour is based on what made sense to me, not on how > stuff actually works in other apps on Windows. Anybody know a place > that describes the de-factor rules for file: URLs on Windows?
The suggested encoding is simple: file://computer/relative_path_from_the_root with empty 'computer' for an empty path. You generate file://disk:/relative_path_from_the_root_of_drive which is very different (but is correctly understood by Netscape - however not the other browsers I checked). The difference is an extra slash before disk:. Hope this helps, Ilya