Why can some browsers read filenames with spaces.

Discussion in 'HTML' started by Edison Carter, Sep 30, 2003.

  1. Got a question.

    A website that I went to, i clicked on a small thumbnail image for the
    larger image gave me a 404 not found, i told the webmaster and he said
    it worked fine for him and he had someone else try it and it worked,
    but i had someone try and it 404'd for them also..

    the thumbnail was linked to a jpg with spaces in the directory and
    filename.. i know that has to be the problem, but whats the cause.?

    I heard it can be that some browsers can add a %20 properly, and some
    cant, im curious to this info as to what browsers this can ocour on.,
    thanks.
    Edison Carter, Sep 30, 2003
    #1
    1. Advertising

  2. Edison Carter

    brucie Guest

    In post <>
    Edison Carter said...

    > A website that I went to, i clicked on a small thumbnail image for the
    > larger image gave me a 404 not found, i told the webmaster and he said
    > it worked fine for him and he had someone else try it and it worked,
    > but i had someone try and it 404'd for them also..
    >
    > the thumbnail was linked to a jpg with spaces in the directory and
    > filename.. i know that has to be the problem, but whats the cause.?


    Uniform Resource Identifiers (URI): Generic Syntax
    2.4.3. Excluded US-ASCII Characters
    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.

    E. Recommendations for Delimiting URI in Context
    [...]
    In some cases, extra whitespace (spaces, linebreaks, tabs, etc.) may
    need to be added to break long URI across lines. The whitespace
    should be ignored when extracting the URI.
    [...]
    For robustness, software that accepts user-typed URI should attempt
    to recognize and strip both delimiters and embedded whitespace.

    Uniform Resource Identifiers (URI): Generic Syntax
    http://www.ietf.org/rfc/rfc2396.txt

    thats basically the main points. the RFC has more on spaces if you
    want to read it.

    if you want to use spaces in file names URL etc - don't. if you really
    think you must then still don't. if your life depends on it use the
    escaped encoding of %20 and accept it will not always work.

    --
    30/September/2003 04:52:27 pm
    brucie, Sep 30, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Scott Allen
    Replies:
    3
    Views:
    2,581
    Scott Allen
    Aug 23, 2004
  2. B.J.
    Replies:
    4
    Views:
    732
    Toby Inkster
    Apr 23, 2005
  3. hokiegal99
    Replies:
    9
    Views:
    549
    Bengt Richter
    Jul 14, 2003
  4. tubby tudor
    Replies:
    0
    Views:
    372
    tubby tudor
    Jul 13, 2003
  5. Mr. SweatyFinger
    Replies:
    2
    Views:
    1,762
    Smokey Grindel
    Dec 2, 2006
Loading...

Share This Page