advertisement

Article:
  Giving the Simple Text Editor 'Legs'
Subject:   Space in URL non-standard (breaks)
Date:   2001-06-08 20:28:13
From:   halliday
I don't know why I didn't notice this the first time through, but today I noticed that one of the images didn't display. The problem is a space in the file name that was not escaped in the URL: Spaces in URL's are generally given special interpretation, so, when they are not intended to have any such special interpretation, they are supposed to be escaped (%20, of course).


While it's true that some browsers will appropriately modify a given URL in their HTTP interchange with the server, this is non-standard and cannot be relied upon.


Therefore, the URL "http://www.oreillynet.com/mac/2001/06/01/graphics/h-m switch.gif" should be "http://www.oreillynet.com/mac/2001/06/01/graphics/h-m%20switch.gif".