ASCII代码(ASCII Codes)
优质
小牛编辑
119浏览
2023-12-01
有2 7 = 128个可打印字符,可以用不同的7-BIT ASCII码表示。 另一组字符不是用于HTML表示,而是设计用于控制硬件。
下表列出了所有7-BIT ASCII代码及其等效的HTML实体代码。
如果要查看等效的HEX,OCT和扩展的ASCII代码集,请查看下一章。
7位可打印ASCII字符
ASCII字符 | 描述 | HTML实体代码 |
---|---|---|
space | ||
! | 感叹号 | ! |
" | quotation mark | " |
# | number sign | # |
$ | dollar sign | $ |
% | 百分号 | % |
& | ampersand | & |
' | apostrophe | ' |
( | 左括号 | ( |
) | 右括号 | ) |
* | asterisk | * |
+ | plus sign | + |
, | comma | , |
- | hyphen | - |
. | period | . |
/ | slash | / |
0 | 数字0 | 0 |
1 | 数字1 | 1 |
2 | 数字2 | 2 |
3 | 数字3 | 3 |
4 | 数字4 | 4 |
5 | 数字5 | 5 |
6 | 数字6 | 6 |
7 | 数字7 | 7 |
8 | 数字8 | 8 |
9 | 数字9 | 9 |
: | colon | : |
; | semicolon | ; |
< | less-than | < |
= | equals-to | = |
> | greater-than | > |
? | question mark | ? |
@ | at sign | @ |
A | uppercase A | A |
B | uppercase B | B |
C | uppercase C | C |
D | uppercase D | D |
E | uppercase E | E |
F | uppercase F | F |
G | uppercase G | G |
H | uppercase H | H |
I | Uppercase I | I |
J | uppercase J | J |
K | uppercase K | K |
L | uppercase L | L |
M | uppercase M | M |
N | uppercase N | N |
O | uppercase O | O |
P | uppercase P | P |
Q | uppercase Q | Q |
R | uppercase R | R |
S | uppercase S | S |
T | uppercase T | T |
U | uppercase U | U |
V | uppercase V | V |
W | uppercase W | W |
X | uppercase X | X |
Y | uppercase Y | Y |
Z | uppercase Z | Z |
[ | left square bracket | [ |
\ | backslash | \ |
] | right square bracket | ] |
^ | caret | ^ |
_ | underscore | _ |
` | grave accent | ` |
a | lowercase a | a |
b | lowercase b | b |
c | lowercase c | c |
d | lowercase d | d |
e | lowercase e | e |
f | lowercase f | f |
g | lowercase g | g |
h | lowercase h | h |
i | lowercase a | i |
j | lowercase j | j |
k | lowercase k | k |
l | 小写l | l |
m | lowercase a | m |
n | lowercase a | n |
o | lowercase o | o |
p | lowercase a | p |
q | lowercase q | q |
r | lowercase a | r |
s | lowercase a | s |
t | lowercase t | t |
u | lowercase u | u |
v | lowercase v | v |
w | lowercase f | w |
x | lowercase x | x |
y | lowercase y | y |
z | lowercase z | z |
{ | left curly brace | { |
| | vertical bar | | |
} | right curly brace | } |
~ | tilde | ~ |
7位ASCII设备控制字符
ASCII字符 | 描述 | HTML实体代码 |
---|---|---|
NUL | Null Character | � |
SOH | start of header |  |
STX | start of text |  |
ETX | end of text |  |
EOT | end of transmission |  |
ENQ | enquiry |  |
ACK | acknowledge |  |
BEL | bell (ring) |  |
BS | backspace |  |
HT | 水平标签 | |
LF | 换行 | |
VT | 垂直标签 |  |
FF | form feed |  |
CR | carriage return | |
SO | shift out |  |
SI | shift out |  |
DLE | 数据链接逃脱 |  |
DC1 | 设备控制1 |  |
DC2 | 设备控制2 |  |
DC3 | 设备控制3 |  |
DC4 | 设备控制4 |  |
NAK | negative acknowledge |  |
SYN | synchronize |  |
ETB | end transmission block |  |
CAN | cancel |  |
EM | end of medium |  |
SUB | substitute |  |
ESC | escape |  |
FS | 文件分隔符 |  |
GS | group separator |  |
RS | record separator |  |
US | unit separator |  |
DEL | delete (rubout) | |