ANSI 是 Windows 95 及其之前的 Windows 系統中預設的字元集。
ANSI 也稱為 Windows-1252。
ANSI 和 ISO-8859-1 非常相似,唯一的不同是在 32 個字元上。
在 ANSI 中,從 128 到 159 的字元用于一些有用的字元,比如歐元符号。
在 ISO-8859-1 中,這些字元映射為在 HTML 中不起作用的控制字元。
許多 Web 開發者聲明 ISO-8859-1,并使用這 32 個值,就像它們使用的是 Windows-1252。
由于這種常見的誤解,當 ISO-8859-1 被聲明時,浏覽器将更改為 Windows-1252。這對以下文檔類型都适用:HTML4、HTML5 和 XHTML。
ANSI 的第一部分(實體編号 0-127)是原來的 ASCII 字元集。它包含數字、大小寫英文字母和一些特殊字元。
如需深入了解 ASCII,請檢視完整的
ASCII 參考手冊。
字元
編号
實體名稱
描述
32
空格(space)
!
33
感歎号(exclamation mark)
"
34
"
引号(quotation mark)
#
35
數字元号(number sign)
$
36
美元符号(dollar sign)
%
37
百分比符号(percent sign)
&
38
&
& 符号(ampersand)
'
39
撇号(apostrophe)
(
40
左括号(left parenthesis)
)
41
右括号(right parenthesis)
*
42
星号(asterisk)
+
43
加号(plus sign)
,
44
逗号(comma)
-
45
連字元(hyphen-minus)
.
46
句号(full stop)
/
47
斜線(solidus)
48
數字 0(digit zero)
1
49
數字 1(digit one)
2
50
數字 2(digit two)
3
51
數字 3(digit three)
4
52
數字 4(digit four)
5
53
數字 5(digit five)
6
54
數字 6(digit six)
7
55
數字 7(digit seven)
8
56
數字 8(digit eight)
9
57
數字 9(digit nine)
:
58
冒号(colon)
;
59
分号(semicolon)
<
60
&lt;
小于号(less-than sign)
=
61
等于号(equals sign)
>
62
&gt;
大于号(greater-than sign)
?
63
問号(question mark)
@
64
@ 符号(commercial at)
A
65
拉丁文大寫字母 A
B
66
拉丁文大寫字母 B
C
67
拉丁文大寫字母 C
D
68
拉丁文大寫字母 D
E
69
拉丁文大寫字母 E
F
70
拉丁文大寫字母 F
G
71
拉丁文大寫字母 G
H
72
拉丁文大寫字母 H
I
73
拉丁文大寫字母 I
J
74
拉丁文大寫字母 J
K
75
拉丁文大寫字母 K
L
76
拉丁文大寫字母 L
M
77
拉丁文大寫字母 M
N
78
拉丁文大寫字母 N
O
79
拉丁文大寫字母 O
P
80
拉丁文大寫字母 P
Q
81
拉丁文大寫字母 Q
R
82
拉丁文大寫字母 R
S
83
拉丁文大寫字母 S
T
84
拉丁文大寫字母 T
U
85
拉丁文大寫字母 U
V
86
拉丁文大寫字母 V
W
87
拉丁文大寫字母 W
X
88
拉丁文大寫字母 X
Y
89
拉丁文大寫字母 Y
Z
90
拉丁文大寫字母 Z
[
91
左方括号(left square bracket)
\
92
反斜線(reverse solidus)
]
93
右方括号(right square bracket)
^
94
插入符号(circumflex accent)
_
95
下劃線(low line)
`
96
重音符(grave accent)
a
97
拉丁文小寫字母 a
b
98
拉丁文小寫字母 b
c
99
拉丁文小寫字母 c
d
100
拉丁文小寫字母 d
e
101
拉丁文小寫字母 e
f
102
拉丁文小寫字母 f
g
103
拉丁文小寫字母 g
h
104
拉丁文小寫字母 h
i
105
拉丁文小寫字母 i
j
106
拉丁文小寫字母 j
k
107
拉丁文小寫字母 k
l
108
拉丁文小寫字母 l
m
109
拉丁文小寫字母 m
n
110
拉丁文小寫字母 n
o
111
拉丁文小寫字母 o
p
112
拉丁文小寫字母 p
q
113
拉丁文小寫字母 q
r
114
拉丁文小寫字母 r
s
115
拉丁文小寫字母 s
t
116
拉丁文小寫字母 t
u
117
拉丁文小寫字母 u
v
118
拉丁文小寫字母 v
w
119
拉丁文小寫字母 w
x
120
拉丁文小寫字母 x
y
121
拉丁文小寫字母 y
z
122
拉丁文小寫字母 z
{
123
左花括号(left curly bracket)
|
124
豎線(vertical line)
}
125
右花括号(right curly bracket)
~
126
波浪線(tilde)
127
未使用(NOT USED)
€
128
&euro;
歐元符号(euro sign)
129
‚
130
&sbquo;
下單引号(single low-9 quotation mark)
ƒ
131
&fnof;
帶鈎的拉丁文小寫字母 f
„
132
&bdquo;
下雙引号(double low-9 quotation mark)
…
133
&hellip;
水準省略号(horizontal ellipsis)
†
134
&dagger;
劍号(dagger)
‡
135
&Dagger;
雙劍号(double dagger)
ˆ
136
&circ;
修飾字母抑揚音(modifier letter circumflex accent)
‰
137
&permil;
千分比符号(per mille sign)
Š
138
&Scaron;
帶有 caron 的拉丁文大寫字母 S
‹
139
&lsaquo;
左單角引号(single left-pointing angle quotation mark)
Œ
140
&OElig;
拉丁文大寫連字 OE
141
Ž
142
&Zcaron;
帶有 caron 的拉丁文大寫字母 Z
143
144
145
&lsquo;
左單引号(left single quotation mark)
146
&rsquo;
右單引号(right single quotation mark)
147
&ldquo;
左雙引号(left double quotation mark)
148
&rdquo;
右雙引号(right double quotation mark)
•
149
&bull;
着重号(bullet)
–
150
&ndash;
短破折号/連字元(en dash)
—
151
&mdash;
長破折号(em dash)
˜
152
&tilde;
小波浪線(small tilde)
™
153
&trade;
貿易标記符号(trade mark sign)
š
154
&scaron;
帶有 caron 的拉丁文小寫字母 s
›
155
&rsaquo;
右單角引号(single right-pointing angle quotation mark)
œ
156
&oelig;
拉丁文小寫連字 oe
157
ž
158
&zcaron;
帶有 caron 的拉丁文小寫字母 z
Ÿ
159
&Yuml;
帶有分音符(diaeresis)的拉丁文大寫字母 Y
160
&nbsp;
不換行空格(no-break space)
¡
161
&iexcl;
倒置感歎号(inverted exclamation mark)
¢
162
&cent;
美分符号(cent sign)
£
163
&pound;
英鎊符号(pound sign)
¤
164
&curren;
貨币符号(currency sign)
¥
165
&yen;
日元符号(yen sign)
¦
166
&brvbar;
間斷的豎杠(broken bar)
§
167
&sect;
小節号(section sign)
¨
168
&uml;
分音符号(diaeresis)
©
169
&copy;
版權所有(copyright sign)
ª
170
&ordf;
陰性序數記号(feminine ordinal indicator)
«
171
&laquo;
左雙角引号(left-pointing double angle quotation mark)
¬
172
&not;
否定符号(not sign)
173
&shy;
軟連字元(soft hyphen)
®
174
&reg;
注冊商标(registered sign)
¯
175
&macr;
長音符号(macron)
°
176
&deg;
度符号(degree sign)
±
177
&plusmn;
加減号/正負号(plus-minus sign)
²
178
&sup2;
上标 2(superscript two)
³
179
&sup3;
上标 3(superscript three)
´
180
&acute;
尖音符号(acute accent)
µ
181
&micro;
微米符号(micro sign)
¶
182
&para;
段落符号(pilcrow sign)
·
183
&middot;
中間點(middle dot)
¸
184
&cedil;
變音符号(cedilla)
¹
185
&sup1;
上标 1(superscript one)
º
186
&ordm;
陽性序數記号(masculine ordinal indicator)
»
187
&raquo;
右雙角引号(right-pointing double angle quotation mark)
¼
188
&frac14;
1/4 分數(vulgar fraction one quarter)
½
189
&frac12;
1/2 分數(vulgar fraction one half)
¾
190
&frac34;
3/4 分數(vulgar fraction three quarters)
¿
191
&iquest;
倒置問号(inverted question mark)
À
192
&Agrave;
帶有重音符号(grave)的拉丁文大寫字母 A
Á
193
&Aacute;
帶有尖音符号(acute)的拉丁文大寫字母 A
Â
194
&Acirc;
帶有抑揚音符号(circumflex)的拉丁文大寫字母 A
Ã
195
&Atilde;
帶有波浪線的拉丁文大寫字母 A
Ä
196
&Auml;
帶有分音符(diaeresis)的拉丁文大寫字母 A
Å
197
&Aring;
帶有上圓圈的拉丁文大寫字母 A
Æ
198
&AElig;
拉丁文大寫字母 AE
Ç
199
&Ccedil;
帶有變音符号(cedilla)的拉丁文大寫字母 C
È
200
&Egrave;
帶有重音符号(grave)的拉丁文大寫字母 E
É
201
&Eacute;
帶有尖音符号(acute)的拉丁文大寫字母 E
Ê
202
&Ecirc;
帶有抑揚符号(circumflex)的拉丁文大寫字母 E
Ë
203
&Euml;
帶有分音符(diaeresis)的拉丁文大寫字母 E
Ì
204
&Igrave;
帶有重音符号(grave)的拉丁文大寫字母 I
Í
205
&Iacute;
帶有尖音符号(acute)的拉丁文大寫字母 I
Î
206
&Icirc;
帶有抑揚音符号(circumflex)的拉丁文大寫字母 I
Ï
207
&Iuml;
帶有分音符(diaeresis)的拉丁文大寫字母 I
Ð
208
&ETH;
拉丁文大寫字母 Eth
Ñ
209
&Ntilde;
帶有波浪線的拉丁文大寫字母 N
Ò
210
&Ograve;
帶有重音符号(grave)的拉丁文大寫字母 O
Ó
211
&Oacute;
帶有尖音符号(acute)的拉丁文大寫字母 O
Ô
212
&Ocirc;
帶有抑揚音符号(circumflex)的拉丁文大寫字母 O
Õ
213
&Otilde;
帶有波浪線的拉丁文大寫字母 O
Ö
214
&Ouml;
帶有分音符(diaeresis)的拉丁文大寫字母 O
×
215
&times;
乘号(multiplication sign)
Ø
216
&Oslash;
帶有删除線的拉丁文大寫字母 O
Ù
217
&Ugrave;
帶有重音符号(grave)的拉丁文大寫字母 U
Ú
218
&Uacute;
帶有尖音符号(acute)的拉丁文大寫字母 U
Û
219
&Ucirc;
帶有抑揚音符号(circumflex)的拉丁文大寫字母 U
Ü
220
&Uuml;
帶有分音符(diaeresis)的拉丁文大寫字母 U
Ý
221
&Yacute;
帶有尖音符号(acute)的拉丁文大寫字母 Y
Þ
222
&THORN;
拉丁文大寫字母 Thorn
ß
223
&szlig;
拉丁文小寫字母 sharp s
à
224
&agrave;
帶有重音符号(grave)的拉丁文小寫字母 a
á
225
&aacute;
帶有尖音符号(acute)的拉丁文小寫字母 a
â
226
&acirc;
帶有抑揚音符号(circumflex)的拉丁文小寫字母 a
ã
227
&atilde;
帶有波浪線的拉丁文小寫字母 a
ä
228
&auml;
帶有分音符(diaeresis)的拉丁文小寫字母 a
å
229
&aring;
帶有上圓圈的拉丁文小寫字母 a
æ
230
&aelig;
拉丁文小寫字母 ae
ç
231
&ccedil;
帶有變音符号(cedilla)的拉丁文小寫字母 c
è
232
&egrave;
帶有重音符号(grave)的拉丁文小寫字母 e
é
233
&eacute;
帶有尖音符号(acute)的拉丁文小寫字母 e
ê
234
&ecirc;
帶有抑揚音符号(circumflex)的拉丁文小寫字母 e
ë
235
&euml;
帶有分音符(diaeresis)的拉丁文小寫字母 e
ì
236
&igrave;
帶有重音符号(grave)的拉丁文小寫字母 i
í
237
&iacute;
帶有尖音符号(acute)的拉丁文小寫字母 i
î
238
&icirc;
帶有抑揚音符号(circumflex)的拉丁文小寫字母 i
ï
239
&iuml;
帶有分音符(diaeresis)的拉丁文小寫字母 i
ð
240
&eth;
拉丁文小寫字母 eth
ñ
241
&ntilde;
帶有波浪線的拉丁文小寫字母 n
ò
242
&ograve;
帶有重音符号(grave)的拉丁文小寫字母 o
ó
243
&oacute;
帶有尖音符号(acute)的拉丁文小寫字母 o
ô
244
&ocirc;
帶有抑揚音符号(circumflex)的拉丁文小寫字母 o
õ
245
&otilde;
帶有波浪線的拉丁文小寫字母 o
ö
246
&ouml;
帶有分音符(diaeresis)的拉丁文小寫字母 o
÷
247
&divide;
除号(division sign)
ø
248
&oslash;
帶有删除線的拉丁文小寫字母 o
ù
249
&ugrave;
帶有重音符号(grave)的拉丁文小寫字母 u
ú
250
&uacute;
帶有尖音符号(acute)的拉丁文小寫字母 u
û
251
&ucirc;
帶有抑揚音符号(circumflex)的拉丁文小寫字母 u
ü
252
&uuml;
帶有分音符(diaeresis)的拉丁文小寫字母 u
ý
253
&yacute;
帶有尖音符号(acute)的拉丁文小寫字母 y
þ
254
&thorn;
拉丁文小寫字母 thorn
ÿ
255
&yuml;
帶有分音符(diaeresis)的拉丁文小寫字母 y
ANSI 控制字元(00-31,加上 127)最初被設計用來控制諸如列印機和錄音帶驅動器之類的硬體裝置。
控制字元(除了水準制表符、換行、回車之外)在 HTML 文檔中不起任何作用。
字元
NUL
00
空字元(null character)
SOH
标題開始(start of header)
STX
正文開始(start of text)
ETX
正文結束(end of text)
EOT
傳輸結束(end of transmission)
ENQ
請求(enquiry)
ACK
收到通知/響應(acknowledge)
BEL
響鈴(bell)
BS
倒退(backspace)
HT
水準制表符(horizontal tab)
LF
10
換行(line feed)
VT
11
垂直制表符(vertical tab)
FF
12
換頁(form feed)
CR
13
回車(carriage return)
SO
14
不用切換(shift out)
SI
15
啟用切換(shift in)
DLE
16
資料鍊路轉義(data link escape)
DC1
17
裝置控制 1(device control 1)
DC2
18
裝置控制 2(device control 2)
DC3
19
裝置控制 3(device control 3)
DC4
20
裝置控制 4(device control 4)
NAK
21
拒絕接收/無響應(negative acknowledge)
SYN
22
同步空閑(synchronize)
ETB
23
傳輸塊結束(end transmission block)
CAN
24
取消(cancel)
EM
25
已到媒體末端/媒體存儲已滿(end of medium)
SUB
26
替補/替換(substitute)
ESC
27
溢出/逃離/取消(escape)
FS
28
檔案分隔符(file separator)
GS
29
組分隔符(group separator)
RS
30
記錄分隔符(record separator)
US
31
單元分隔符(unit separator)
DEL
删除(delete)