HTML URL encoding Reference (reprint)

Source: Internet
Author: User
Tags control characters

The role of URL encoding (URL encoding) is to convert characters into a format that can be transmitted securely over the Internet.
url--Uniform Resource Locator
The Web browser requests a page from the Web server via a URL.
URL is the address of the webpage, such as: http://www.longsays.com.
URL encoding
URLs are transmitted over the Internet, only in the ASCII character set.
But because URLs often contain characters other than the ASCII character set, we must convert the URLs. The URL encoding to do is to convert the URL into a valid ASCII character format.
At URL encoding, each non-secure ASCII character is replaced with the "%HH" format, where HH is a two-bit hexadecimal number that corresponds to the encoded value of the character in the iso-8859-1 character set.
The URL string cannot contain spaces, and when the URL is encoded, all spaces are replaced with a plus sign (+).

URL Coding Reference Manual
ASCII characters URL encoding
Space %20
! %21
" %22
# %23
$ %24
% %25
& %26
%27
( %28
) %29
* %2a
+ %2b
, %2c
- %2d
. %2e
/ %2f
0 %30
1 %31
2 %32
3 %33
4 %34
5 %35
6 %36
7 %37
8 %38
9 %39
: %3a
; %3b
< %3c
= %3d
> %3e
? %3f
@ %40
A %41
B %42
C %43
D %44
E %45
F %46
G %47
H %48
I %49
J %4a
K %4b
L %4c
M %4d
N %4e
O %4f
P %50
Q %51
R %52
S %53
T %54
U %55
V %56
W %57
X %58
Y %59
Z %5a
[ %5b
\ %5c
] %5d
^ %5e
_ %5f
` %60
A %61
B %62
C %63
D %64
E %65
F %66
G %67
H %68
I %69
J %6a
K %6b
L %6c
M %6d
N %6e
O %6f
P %70
Q %71
R %72
S %73
T %74
U %75
V %76
W %77
X %78
Y %79
Z %7a
{ %7b
| %7c
} %7d
~ %7e
%7f
%80
%81
? %82
? %83
? %84
... %85
? %86
? %87
? %88
%89
? %8a
? %8b
? %8c
%8d
? %8e
%8f
%90
%91
%92
%93
%94
? %95
%96
%97
? %98
? %99
? %9a
? %9b
? %9c
%9d
? %9e
? %9f
%a0
? %a1
%a2
%a3
%a4
%a5
| %a6
§ %a7
¨ %a8
? %a9
A %aa
? %ab
? %ac
ˉt %ad
? %ae
ˉt %af
° %b0
± %b1
2 %b2
3 %b3
%b4
Μ %b5
? %b6
· %b7
? %b8
1 %b9
O %ba
? %bb
? %bc
? %bd
? %be
? %bf
à %c0
á %c1
? %c2
? %c3
? %c4
? %c5
? %c6
? %c7
È %c8
E %c9
Ê %ca
? %cb
ì %cc
í %cd
? %ce
? %cf
D %d0
? %d1
Ò %d2
Ó %d3
? %d4
? %d5
? %d6
%d7
? %d8
Ù %d9
Ú %da
? %db
U %dc
Y %DD
T %de
? %df
à %e0
á %e1
A %e2
? %e3
? %e4
? %e5
? %e6
? %e7
È %e8
E %e9
Ê %ea
? %eb
ì %ec
í %ed
? %ee
? %ef
E %f0
? %f1
Ò %f2
Ó %f3
? %f4
? %f5
? %f6
÷ %f7
? %f8
Ù %f9
Ú %fa
? %fb
U %fc
Y %fd
T %fe
? %ff

URL Coding Reference Manual

ASCII device control characters (% 00 to%1f) were originally used to control hardware devices. Here the control character does not work in the URL.

ASCII characters Description URL encoding
NUL Null character %00
SOH Title Start (start of header) %01
STX Text Start (start of text) %02
ETX Text End (end of text) %03
EOT Transfer end (end of transmission) %04
ENQ Query (Enquiry) %05
Ack Confirmation (Acknowledge) %06
BEL Bell (Bell) %07
Bs BACKSPACE (BACKSPACE) %08
HT Horizontal tab (Horizontal tab) %09
LF NewLine (line feed) %0a
Vt Vertical tab (Vertical tab) %0b
Ff Page change (Form feed) %0c
CR Enter (carriage return) %0d
So Remove (Shift out) %0e
SI Move into (shift in) %0f
DLE Data Communication Exchange code (link escape) %10
DC1 Equipment control 1 (Device controls 1) %11
DC2 Equipment Control 2 (device Controls 2) %12
DC3 Equipment control 3 (device Controls 3) %13
DC4 Equipment control 4 (device controls 4) %14
NAK Negative response (negative acknowledge) %15
Syn Sync (Synchronize) %16
ETB Transfer block End (end of transmission block) #1q
CAN Cancellation (cancel) %18
Em Media End (end of Medium) %19
SUB Alternative (substitute) %1a
Esc Escaping (Escape) %1b
Fs File Delimiter (separator) $ "
Gs Set Separator (group separator) %1d
Rs Recording delimiter (record separator) %1e
US Cell Separator (unit separator) %1f

Reprint Please specify: Dragon language Vision? HTML URL Encoding

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.