Url$

Since 3.7

EncodedUrl = Url ( String ) EncodedUrl = Url$ ( String )

Encode an URL.

  • Space are encoded as +.

  • Letters, digits and a few symbols (., _, ~, ,, $, !, /) are encoded as is.

  • Other characters are encoded with %XX where XX is the ASCII code of the character in hexadecimal.

The / character is not encoded, so that you can encode URL paths in one shot.

If you really want the / character inside an URL path element (this is bad idea!), you have to encode each URL path element separately and use Replace(UrlPathElement, '/', '%2F') on them.

See also