ASCII

ASCII

ASCII, the acronym for the “American Standard Code for Information Interchange” is the first character-encoding scheme used between computers on the Internet. (ASCII , “美国信息交换标准代码”的首字母缩写,是互联网上计算机之间使用的第一个字符编码方案。)

Modern character encoding schemes like UTF-8 and ISO-8859 are built on ASCII. (现代字符编码方案(如UTF-8和ISO-8859 )建立在ASCII之上。)

The ASCII Character Set

The ASCII Character Set (ASCII 字符集)

ASCII Character Set was designed in the ’60s, as a standard character set for computers and hardware devices, such as printers and tape drives. (ASCII字符集是在60年代设计的,作为计算机和硬件设备(如打印机和磁带机)的标准字符集。)

Originally ASCII is based on the English alphabet, and it’s a 7-bit character set containing 128 characters: the numbers 0-9, uppercase and lowercase English letters from A to Z, some basic punctuation symbols and some special characters.

The character sets used in modern computers, HTML, and Internet are all based on ASCII. (现代计算机、HTML和互联网中使用的字符集都基于ASCII。)

Below, you can find table lists that contain 128 ASCII characters and their equivalent HTML entity codes (下面,您可以找到包含128个ASCII字符及其等效HTML实体代码的表列表)

ASCII Printable Characters

ASCII Printable Characters (ASCII可打印字符)

ASCII CharacterHTML Entity CodeDescription
space
!!exclamation mark
""quotation mark
##number sign
$$dollar sign
%%percent sign
&&ampersand
''apostrophe
((left parenthesis
))right parenthesis
**asterisk
++plus sign
,,comma
--hyphen
..period
//slash
00digit 0
11digit 1
22digit 2
33digit 3
44digit 4
55digit 5
66digit 6
77digit 7
88digit 8
99digit 9
::colon
;;semicolon
<<less-than
==equals-to
>>greater-than
??question mark
@@at sign
AAuppercase A
BBuppercase B
CCuppercase C
DDuppercase D
EEuppercase E
FFuppercase F
GGuppercase G
HHuppercase H
IIuppercase I
JJuppercase J
KKuppercase K
LLuppercase L
MMuppercase M
NNuppercase N
OOuppercase O
PPuppercase P
QQuppercase Q
RRuppercase R
SSuppercase S
TTuppercase T
UUuppercase U
VVuppercase V
WWuppercase W
XXuppercase X
YYuppercase Y
ZZuppercase Z
[[left square bracket
|\backslash
]]right square bracket
^^caret
__underscore
``grave accent
aalowercase a
bblowercase b
cclowercase c
ddlowercase d
eelowercase e
fflowercase f
gglowercase g
hhlowercase h
iilowercase i
jjlowercase j
kklowercase k
lllowercase l
mmlowercase m
nnlowercase n
oolowercase o
pplowercase p
qqlowercase q
rrlowercase r
sslowercase s
ttlowercase t
uulowercase u
vvlowercase v
wwlowercase w
xxlowercase x
yylowercase y
zzlowercase z
{{left curly brace
|
}}right curly brace
~~tilde

ASCII Device Control Characters

ASCII Device Control Characters (ASCII设备控制字符)

The ASCII device control characters (except horizontal tab, line feed, and carriage return) have nothing to do inside an HTML document. Originally ASCII control characters (range 00-31, plus 127) were designed to control hardware devices. (ASCII设备控制字符(水平选项卡、换行和回车除外)在HTML文档中无关。最初, ASCII控制字符(范围00-31 ,加上127 )被设计用于控制硬件设备。)

ASCII CharacterHTML Entity CodeDescription
NULnull character
SOHstart of header
STXstart of text
ETXend of text
EOTend of transmission
ENQenquiry
ACKacknowledge
BELbell (ring)
BSbackspace
HThorizontal tab
LFline feed
VT vertical tab
FFform feed
CRcarriage return
SOshift out
SIshift in
DLEdata link escape
DC1device control 1
DC2device control 2
DC3device control 3
DC4device control 4
NAKnegative acknowledge
SYNsynchronize
ETBend transmission block
CANcancel
EMend of medium
SUBsubstitute
ESCescape
FSfile separator
GSgroup separator
RSrecord separator
USunit separator
DELdelete (rubout)


请遵守《互联网环境法规》文明发言,欢迎讨论问题
扫码反馈

扫一扫,反馈当前页面

咨询反馈
扫码关注
返回顶部