ASCII字符集
ASCII ,它的全称是"美国信息交换标准代码"。它设计于60年代早期,是计算机和诸如打印机、磁带驱动器之类的硬件设备的标准字符集。
ASCII 是 7 比特字符集,包含了 128 个不同的字符值。
-
ASCII可印刷字符
字符 |
ASCII 码(十进制) |
ASCII 码(十六进制) |
|
032 |
20 |
! |
033 |
21 |
" |
034 |
22 |
# |
035 |
23 |
$ |
036 |
24 |
% |
037 |
25 |
& |
038 |
26 |
' |
039 |
27 |
( |
040 |
28 |
) |
041 |
29 |
* |
042 |
2A |
+ |
043 |
2B |
, |
044 |
2C |
- |
045 |
2D |
. |
046 |
2E |
/ |
047 |
2F |
0 |
048 |
30 |
1 |
049 |
31 |
2 |
050 |
32 |
3 |
051 |
33 |
4 |
052 |
34 |
5 |
053 |
35 |
6 |
054 |
36 |
7 |
055 |
37 |
8 |
056 |
38 |
9 |
057 |
39 |
: |
058 |
3A |
; |
059 |
3B |
< |
060 |
3C |
= |
061 |
3D |
> |
062 |
3E |
? |
063 |
3F |
@ |
064 |
40 |
A |
065 |
41 |
B |
066 |
42 |
C |
067 |
43 |
D |
068 |
44 |
E |
069 |
45 |
F |
070 |
46 |
G |
071 |
47 |
H |
072 |
48 |
I |
073 |
49 |
J |
074 |
4A |
K |
075 |
4B |
L |
076 |
4C |
M |
077 |
4D |
N |
078 |
4E |
O |
079 |
4F |
P |
080 |
50 |
Q |
081 |
51 |
R |
082 |
52 |
S |
083 |
53 |
T |
084 |
54 |
U |
085 |
55 |
V |
086 |
56 |
W |
087 |
57 |
X |
088 |
58 |
Y |
089 |
59 |
Z |
090 |
5A |
[ |
091 |
5B |
\ |
092 |
5C |
] |
093 |
5D |
^ |
094 |
5E |
_ |
095 |
5F |
` |
096 |
60 |
a |
097 |
61 |
b |
098 |
62 |
c |
099 |
63 |
d |
100 |
64 |
e |
101 |
65 |
f |
102 |
66 |
g |
103 |
67 |
h |
104 |
68 |
i |
105 |
69 |
j |
106 |
6A |
k |
107 |
6B |
l |
108 |
6C |
m |
109 |
6D |
n |
110 |
6E |
o |
111 |
6F |
p |
112 |
70 |
q |
113 |
71 |
r |
114 |
72 |
s |
115 |
73 |
t |
116 |
74 |
u |
117 |
75 |
v |
118 |
76 |
w |
119 |
77 |
x |
120 |
78 |
y |
121 |
79 |
z |
122 |
7A |
{ |
123 |
7B |
| |
124 |
7C |
} |
125 |
7D |
~ |
126 |
7E |
-
ASCII设备控制字符
字符 |
ASCII 码(十进制) |
ASCII 码(十六进制) |
描述 |
NUL |
00 |
00 |
null character |
SOH |
01 |
01 |
start of header |
STX |
02 |
02 |
start of text |
ETX |
03 |
03 |
end of text |
EOT |
04 |
04 |
end of transmission |
ENQ |
05 |
05 |
enquiry |
ACK |
06 |
06 |
acknowledge |
BEL |
07 |
07 |
bell (ring) |
BS |
08 |
08 |
backspace |
HT |
09 |
09 |
horizontal tab |
LF |
10 |
0A |
line feed |
VT |
11 |
0B |
vertical tab |
FF |
12 |
0C |
form feed |
CR |
13 |
0D |
carriage return |
SO |
14 |
0E |
shift out |
SI |
15 |
0F |
shift in |
DLE |
16 |
10 |
data link escape |
DC1 |
17 |
11 |
device control 1 |
DC2 |
18 |
12 |
device control 2 |
DC3 |
19 |
13 |
device control 3 |
DC4 |
20 |
14 |
device control 4 |
NAK |
21 |
15 |
negative acknowledge |
SYN |
22 |
16 |
synchronize |
ETB |
23 |
17 |
end transmission block |
CAN |
24 |
18 |
cancel |
EM |
25 |
19 |
end of medium |
SUB |
26 |
1A |
substitute |
ESC |
27 |
1B |
escape |
FS |
28 |
1C |
file separator |
GS |
29 |
1D |
group separator |
RS |
30 |
1E |
record separator |
US |
31 |
1F |
unit separator |
DEL |
127 |
7F |
delete (rubout) |