|
Posted by Alan J. Flavell on 09/19/05 10:00
On Mon, 19 Sep 2005, Dr Clue wrote:
> Another thing is that "\" fors not = "/". The former wis for windows
> and the latter is for unix.
But there's only one kind of URL - it doesn't depend on OS.
It's unfortunate that IE silently fixes-up "\" in URLs, leading too
many misguided authors into believing their URLs with "\" in them are
OK when they aren't.
Btw, the Windows file system itself has no problem with "/" as a file
hierarchy separator - where problems arise in Windows, is in parsing in
some of the DOS-like shells, where "/" was parsed differently. But this
doesn't affect browsers parsing "file:" URLs, as far as I've ever found.
And "\" is definitely wrong in "http:" URLs, and causes extra problems for
authors who only test on IE, because IE silently fixes them up.
Win32 Perl, for example, also has no problem with "/" as file hierarchy
separator.
So, basically - avoid "\" as a file hierarchy separator, even on Windows,
except when you have to deal with DOS-like shells.
Navigation:
[Reply to this message]
|