Does a `+` in a URL scheme/host/path represent a space?

Francisco Ryan Tolmasky I picture Francisco Ryan Tolmasky I · Jun 17, 2009 · Viewed 234.9k times · Source

I am aware that a + in the query string of a URL represents a space. Is this also the case outside of the query string region? That is to say, does the following URL:

http://a.com/a+b/c

actually represent:

http://a.com/a b/c

(and thus need to be encoded if it should actually be a +), or does it in fact actually represent a+b/c?

Answer

Niels R. picture Niels R. · Jun 17, 2009

You can find a nice list of corresponding URL encoded characters on W3Schools.

  • + becomes %2B
  • space becomes %20