URL escape codes

URL escape codes for characters that must be escaped lists the characters that must be escaped in URLs.

If you must escape a character in a string literal, you must use the dollar sign ($) instead of percent (%); for example, use query=title%20EQ%20"$3CMy title$3E" instead of query=title%20EQ%20'%3CMy title%3E'.

URL escape codes for characters that must be escaped

Character

URL Escape Codes

String Literal Escape Code

SPACE

%20

$20

<

%3C

$3C

>

%3E

$3E

#

%23

$23

%

%25

$25

+

%2B

$2B

{

%7B

$7B

}

%7D

$7D

|

%7C

$7C

\

%5C

$5C

^

%5E

$5E
~

%7E

$7E

[

%5B

$5B

]

%5D

$5D

%60

$60

;

%3B

$3B

/

%2F

$2F

?

%3F

$3F

:

%3A

$3A

@

%40

$40

=

%3D

$3D

&

%26

$26

$

%24

$24

White spaces in URLs

You can use the following characters or strings to represent white space in the query portion of a URL:

  • White space ( )

  • Plus sign (+)

  • URL escape code (%20)

  • String literal escape code ($20)