Reserved characters
Reserved characters should not be encoded when they appear in their conventional meaning in a URL. For example, do not encode the slash (/) when using it as part of the URL syntax. Only encode unsafe characters (defined in the table in the next section) in your URLs.
The following table lists reserved characters.
Characters | Hex | Dec | |
|
|
|
|
$ | Dollar | 24 | 36 |
|
|
|
|
& | Ampersand | 26 | 38 |
|
|
|
|
+ | Plus | 2B | 43 |
, | Comma | 2C | 44 |
|
|
|
|
/ | Forward slash (virgule) | 2F | 47 |
|
|
|
|
: | Colon | 3A | 58 |
; | 3B | 59 | |
|
|
|
|
= | Equal | 3D | 61 |
|
|
|
|
? | Question mark | 3F | 63 |
@ | “At” symbol | 4O | 64 |
|
|
|
|
Figure 30. Reserved Characters
Unsafe characters
URLs use some characters for “special use” in defining their syntax and these characters should be encoded. For various reasons, these characters may possibly be misunderstood within a URL. The following table lists unsafe characters.
Characters | Hex | Dec | |
|
|
|
|
| Space | 20 | 32 |
|
|
|
|
“ “ | Quotation marks | 22 | 34 |
< | “Less than” symbol | 3C | 60 |
|
|
|
|
> | “More than” symbol | 3E | 62 |
|
|
|
|
# | Pound | 23 | 35 |
% | Percent | 25 | 37 |
|
|
|
|
{ | Left brace | 7B | 123 |
|
|
|
|
} | Right brace | 7D | 125 |
Vertical bar (pipe) | 7C | 124 | |
|
|
|
|
\ | Backslash | 5C | 92 |
|
|
|
|
^ | Caret | 5E | 94 |
~ | Tilde | 7E | 126 |
|
|
|
|
[ | Left square bracket | 5B | 91 |
|
|
|
|
] | Right square bracket | 5D | 93 |
` | Grave accent | 60 | 96 |
Figure 31. Unsafe Characters
IPL T PCS4 • HTML Configuration and Control 38