「ASCII Table」- ASCII 码表 | 整理 |

认识

ASCII,美国信息交换标准代码,American Standard Code for Information Interchange

组成

当计算机早期时,其非常小,仅包含 128 个字符(0-127)。包括英文字母(大小写)、数字、基本标点以及控制字符(如换行、响铃)。

编码方式:每个字符用一个 7 位的字节(实际上是个 8 位字节的后 7 位)表示。

局限性:无法表示英语之外的任何语言,如中文、法语的带重音符号的字母等。

控制字符 Control Characters

CharOCTDECHEXControl-KeyDescription
NUL000^@Null character
SOH111^AStart of heading, = console interrupt
STX222^BStart of text, maintenance mode on HP console
ETX333^CEnd of text
EOT444^DEnd of transmission, not the same as ETB
ENQ555^EEnquiry, goes with ACK; old HP flow control
ACK666^FAcknowledge, clears ENQ logon hand
BEL777^GBell, rings the bell…
BS1088^HBackspace, works on HP terminals/computers
HT1199^IHorizontal tab, move to next tab stop
LF1210a^JLine Feed
VT1311b^KVertical tab
FF1412c^LForm Feed, page eject
CR1513d^MCarriage Return
SO1614e^NShift Out, alternate character set
SI1715f^OShift In, resume defaultn character set
DLE201610^PData link escape
DC1211711^QXON, with XOFF to pause listings; “:okay to send”.
DC2221812^RDevice control 2, block-mode flow control
DC3231913^SXOFF, with XON is TERM=18 flow control
DC4242014^TDevice control 4
NAK252115^UNegative acknowledge
SYN262216^VSynchronous idle
ETB272317^WEnd transmission block, not the same as EOT
CAN302417^XCancel line, MPE echoes !!
EM312519^YEnd of medium, Control-Y interrupt
SUB32261a^ZSubstitute
ESC33271b^[Escape, next character is not echoed
FS34281c^\File separator
GS35291d^]Group separator
RS36301e^^Record separator, block-mode terminator
US37311f^_Unit separator

可打印字符 Printing Characters

CharOCTDECHEXControl-KeyDescription
SP403220 Space
!413321 Exclamation mark
423422 Quotation mark (” in HTML)
#433523 Cross hatch (number sign)
$443624 Dollar sign
%453725 Percent sign
&463826 Ampersand
`473927 Closing single quote (apostrophe)
(504028 Opening parentheses
)514129 Closing parentheses
*52422a Asterisk (star, multiply)
+53432b Plus
,54442c Comma
55452d Hyphen, dash, minus
.56462e Period
/57472f Slant (forward slash, divide)
0604830 Zero
1614931 One
2625032 Two
3635133 Three
4645234 Four
5655335 Five
6665436 Six
7675537 Seven
8705638 Eight
9715739 Nine
:72583a Colon
;73593b Semicolon
<74603c Less than sign (< in HTML)
=75613d Equals sign
>76623e Greater than sign (> in HTML)
?77633f Question mark
@1006440 At-sign
A1016541 Uppercase A
B1026642 Uppercase B
C1036743 Uppercase C
D1046844 Uppercase D
E1056945 Uppercase E
F1067046 Uppercase F
G1077147 Uppercase G
H1107248 Uppercase H
I1117349 Uppercase I
J112744a Uppercase J
K113754b Uppercase K
L114764c Uppercase L
M115774d Uppercase M
N116784e Uppercase N
O117794f Uppercase O
P1208050 Uppercase P
Q1218151 Uppercase Q
R1228252 Uppercase R
S1238353 Uppercase S
T1248454 Uppercase T
U1258555 Uppercase U
V1268656 Uppercase V
W1278757 Uppercase W
X1308858 Uppercase X
Y1318959 Uppercase Y
Z132905a Uppercase Z
[133915b Opening square bracket
\134925c Reverse slant (Backslash)
]135935d Closing square bracket
^136945e Caret (Circumflex)
_137955f Underscore
`1409660 Opening single quote
a1419761 Lowercase a
b1429862 Lowercase b
c1439963 Lowercase c
d14410064 Lowercase d
e14510165 Lowercase e
f14610266 Lowercase f
g14710367 Lowercase g
h15010468 Lowercase h
i15110569 Lowercase i
j1521066a Lowercase j
k1531076b Lowercase k
l1541086c Lowercase l
m1551096d Lowercase m
n1561106e Lowercase n
o1571116f Lowercase o
p16011270 Lowercase p
q16111371 Lowercase q
r16211472 Lowercase r
s16311573 Lowercase s
t16411674 Lowercase t
u16511775 Lowercase u
v16611876 Lowercase v
w16711977 Lowercase w
x17012078 Lowercase x
y17112179 Lowercase y
z1721227a Lowercase z
{1731237b Opening curly brace
|1741247c Vertical line
}1751257d Cloing curly brace
~1761267e Tilde (approximate)
DEL1771277f Delete (rubout), cross-hatch box

参考

Control codes – converting to ASCII, hex or decimal
Ascii Table – ASCII character codes and html, octal, hex and decimal chart conversion