[plug] Apache doesnt like filenames with spaces

Colin Muller colin at durbanet.co.za
Tue Feb 29 13:43:06 WST 2000


I've just checked RFC 2396 (Uniform Resource Identifiers (URI): Generic
Syntax), which says:

"
   The space character is excluded because significant spaces may
   disappear and insignificant spaces may be introduced when URI are
   transcribed or typeset or subjected to the treatment of word-
   processing programs.  Whitespace is also used to delimit URI in many
   contexts.

   space       = <US-ASCII coded character 20 hexadecimal>
"

So my (and your) understanding that spaces could be encoded with %20 was
wrong: they shouldn't be used at all, ever, in a URI. SO it turns out
that Netscape is following the standard while IE5 is breaking it
(surprise!).

Colin

Jeremy Malcolm wrote:
> 
> > OK, I understand that spaces break the HTTP syntax, but I'm talking HTML
> > here.
> 
> You should actually URL-encode the HTML.  So your HTML code will literally
> have <a href="space%20here.gif">
> 
> --
> JEREMY MALCOLM Jeremy at Malcolm.wattle.id.au http://malcolm.wattle.id.au
> SIG of the day: [ ] Contact  [ ] Web  [ ] PGP  [ ] Taglines #1  [x] #2
> "I'm a lawyer." "Honest?" "No, the usual kind." | Linux, the choice of
> a GNU generation. | Are you the brain specialist? | "Could anyone pass
> the sodium chloride, please?" - Adric (5W) | The Nanites have lawyers?



More information about the plug mailing list