URL encoding is a format that a browser uses to package form input.
Defined
URL encoding is a format that a browser uses to package form input. The browser takes all of the name and its values from the form, encodes them with the Name/value parameter (removing the characters that cannot be transferred, ranking the data, and so on) as part of the URL or to the server as a separate piece. In either case, the form input format on the server side looks like this:thename=ichabod+crane&gender=male&status=missing&; headless=yes
Encoding Rules
URL encoding follows the following rules: Each pair of name/value is separated by a &; character, and each pair of name/value from the form is separated by the = character. If the user does not enter a value for this name, then the name still appears, but no value. Any special characters (that is, those that are not simple seven-bit ASCII, such as kanji) will be encoded in hexadecimal with the percentile%, and of course include such special characters as =,&;; In fact, URL encoding is a character ASCII hexadecimal. However, there is a slight change, which needs to be preceded by "%". For example "\", its ASCII code is 92,92 hexadecimal is 5c, so "\" URL encoding is%5c. So what is the URL code for Chinese characters? Very simple, see example: "Hu" ASCII code is-17670, hexadecimal is bafa,url encoding is "%BA%FA".
URL encoding Table
BACKSPACE%08 |
I%49 |
V%76 |
Ó%d3 |
tab%09 |
J%4a |
W%77 |
Ô %d4 |
Linefeed%0a |
K%4b |
X%78 |
Õ %d5 |
Creturn%0d |
L%4c |
Y%79 |
Ö %d6 |
Space%20 |
M%4d |
Z%7a |
Ø %d8 |
! %21 |
N%4e |
{%7b |
Ù%d9 |
"%22 |
O%4f |
| %7c |
Ú%da |
#%23 |
P%50 |
}%7d |
Û %db |
$%24 |
Q%51 |
~%7e |
Ü%dc |
%%25 |
R%52 |
¢%a2 |
Y%DD |
&%26 |
S%53 |
£%a3 |
T%de |
'%27 |
T%54 |
¥%a5 |
ß %df |
(%28 |
U%55 |
| %a6 |
À%e0 |
)%29 |
V%56 |
§%a7 |
Á%e1 |
*%2A |
W%57 |
« %ab |
A%e2 |
+%2b |
X%58 |
¬ %ac |
ã %e3 |
,%2c |
Y%59 |
ˉ%ad |
ä %e4 |
-%2d |
Z%5a |
o%b0 |
å %e5 |
. %2e |
[%5b |
±%b1 |
æ %e6 |
/%2f |
\%5c |
A%b2 |
ç %e7 |
0%30 |
]%5d |
,%B4 |
È%e8 |
1%31 |
^%5e |
Μ%b5 |
É%e9 |
2%32 |
_%5f |
» %bb |
Ê%ea |
3%33 |
'%60 |
¼ %bc |
ë %eb |
4%34 |
A%61 |
½ %bd |
Ì%ec |
5%35 |
b%62 |
¿ %bf |
Í%ed |
6%36 |
C%63 |
À%c0 |
î %ee |
7%37 |
D%64 |
Á%c1 |
ï %ef |
8%38 |
E%65 |
 %c2 |
E%f0 |
9%39 |
F%66 |
à %c3 |
ñ %f1 |
:%3a |
G%67 |
Ä %c4 |
Ò%f2 |
; %3b |
H%68 |
Å %c5 |
Ó%f3 |
<%3c |
I%69 |
Æ %c6 |
ô %f4 |
=%3d |
J%6a |
Ç %c7 |
õ %f5 |
>%3e |
K%6b |
È%c8 |
ö %f6 |
%3f |
L%6C |
É%c9 |
÷%f7 |
@%40 |
M%6d |
Ê%ca |
ø %f8 |
A%41 |
N%6e |
Ë %cb |
Ù%f9 |
B%42 |
o%6f |
Ì%cc |
Ú%fa |
C%43 |
P%70 |
Í%cd |
û %fb |
D%44 |
Q%71 |
Î %ce |
Ü%fc |
E%45 |
R%72 |
Ï %cf |
Y%fd |
F%46 |
S%73 |
D%d0 |
T%fe |
G%47 |
T%74 |
Ñ %d1 |
ÿ %ff |
H%48 |
U%75 |
Ò%d2 |
? |
URL encoding table, URL encoding Daquan