ISO 8859-1 Characters as Named and Numeric HTML Entities

本文详细介绍了HTML中的字符实体,包括其在不同编码标准下的表示方式,如ISO8859-1与CP1252等。此外还讨论了如何在HTML文档中正确使用这些实体以确保跨平台和浏览器的一致性显示。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Compatibility notes

All the characters from 0 through 255 are given here, including those which are reserved in official ISO 8859-1, so that you can test your browser's compliance. Specifically, if you are using MS-DOS or MS-Windows, check to see if your browser is using CP1252, CP437 or an ISO 8859-1 compliant code page. The correct way to write such glyphs is with HTML 4.0 entities , which several browsers already understand (within the limits of their operating systems). I would advise using them even in HTML 3.2 documents, even though the CP1252 numerical entities are technically valid HTML 3.2 and the named entities are not, due to the mysteries of SGML. (It defines valid characters as ranges, and nobody bothered to excluded those.) However, to be completely compliant, you should indicate that such documents are HTML 4.0, which is what W3C wants you to use anyway. The numeric character entities here are all given in decimal and hexadecimal for your viewing pleasure.

If you are running a version of MacOS predating version 10, several characters may be rendered incorrectly. Specifically, Latin 1 characters 166, 178, 185, 188, 189, 190, 208, 221, 222, 240, 253, and 254 may be wrong. I hear you can get special fonts to work around this problem, but since I don't use a Mac, I don't know where to get these or how to use them.

Number Numeric Entity Named Entity Description
Entity Character
Decimal Hex Dec Hex Entity Char
9 	 	     horizontal tab
10 
 
     line feed
13 
 
     carriage return
32         space
33 ! ! ! !     exclamation mark
34 " " " " " " quotation mark
35 # # # #     number sign
36 $ $ $ $     dollar sign
37 % % % %     percent sign
38 & & & & & & ampersand
39 ' ' ' '     apostrophe (acute accent, close single quote)
40 ( ( ( (     left parenthesis
41 ) ) ) )     right parenthesis
42 * * * *     asterisk
43 + + + +     plus sign
44 , , , ,     comma
45 - - - -     hyphen
46 . . . .     period (fullstop)
47 / / / /     solidus (slash)
48 0 0 0 0     0
49 1 1 1 1     1
50 2 2 2 2     2
51 3 3 3 3     3
52 4 4 4 4     4
53 5 5 5 5     5
54 6 6 6 6     6
55 7 7 7 7     7
56 8 8 8 8     8
57 9 9 9 9     9
58 : : : :     colon
59 &#59; &#x3b; ; ;     semi-colon
60 &#60; &#x3c; < < &lt; < less than
61 &#61; &#x3d; = =     equals sign
62 &#62; &#x3e; > > &gt; > greater than
63 &#63; &#x3f; ? ?     question mark
64 &#64; &#x40; @ @     commercial at
65 &#65; &#x41; A A     A
66 &#66; &#x42; B B     B
67 &#67; &#x43; C C     C
68 &#68; &#x44; D D     D
69 &#69; &#x45; E E     E
70 &#70; &#x46; F F     F
71 &#71; &#x47; G G     G
72 &#72; &#x48; H H     H
73 &#73; &#x49; I I     I
74 &#74; &#x4a; J J     J
75 &#75; &#x4b; K K     K
76 &#76; &#x4c; L L     L
77 &#77; &#x4d; M M     M
78 &#78; &#x4e; N N     N
79 &#79; &#x4f; O O     O
80 &#80; &#x50; P P     P
81 &#81; &#x51; Q Q     Q
82 &#82; &#x52; R R     R
83 &#83; &#x53; S S     S
84 &#84; &#x54; T T     T
85 &#85; &#x55; U U     U
86 &#86; &#x56; V V     V
87 &#87; &#x57; W W     W
88 &#88; &#x58; X X     X
89 &#89; &#x59; Y Y     Y
90 &#90; &#x5a; Z Z     Z
91 &#91; &#x5b; [ [     left square bracket
92 &#92; &#x5c; / /     reverse solidus (backslash)
93 &#93; &#x5d; ] ]     right square bracket
94 &#94; &#x5e; ^ ^     caret
95 &#95; &#x5f; _ _     horizontal bar (underscore)
96 &#96; &#x60; ` `     grave accent (open single quote, backquote)
97 &#97; &#x61; a a     a
98 &#98; &#x62; b b     b
99 &#99; &#x63; c c     c
100 &#100; &#x64; d d     d
101 &#101; &#x65; e e     e
102 &#102; &#x66; f f     f
103 &#103; &#x67; g g     g
104 &#104; &#x68; h h     h
105 &#105; &#x69; i i     i
106 &#106; &#x6a; j j     j
107 &#107; &#x6b; k k     k
108 &#108; &#x6c; l l     l
109 &#109; &#x6d; m m     m
110 &#110; &#x6e; n n     n
111 &#111; &#x6f; o o     o
112 &#112; &#x70; p p     p
113 &#113; &#x71; q q     q
114 &#114; &#x72; r r     r
115 &#115; &#x73; s s     s
116 &#116; &#x74; t t     t
117 &#117; &#x75; u u     u
118 &#118; &#x76; v v     v
119 &#119; &#x77; w w     w
120 &#120; &#x78; x x     x
121 &#121; &#x79; y y     y
122 &#122; &#x7a; z z     z
123 &#123; &#x7b; { {     left curly brace
124 &#124; &#x7c; | |     vertical bar
125 &#125; &#x7d; } }     right curly brace
126 &#126; &#x7e; ~ ~     tilde
160 &#160; &#xa0;     &nbsp;   non-breaking Space
161 &#161; &#xa1; ¡ ¡ &iexcl; ¡ inverted exclamation
162 &#162; &#xa2; ¢ ¢ &cent; ¢ cent sign
163 &#163; &#xa3; £ £ &pound; £ pound sterling
164 &#164; &#xa4; ¤ ¤ &curren; ¤general currency sign
165 &#165; &#xa5; ¥ ¥ &yen; ¥ yen sign
166 &#166; &#xa6; ¦ ¦ &brvbar; ¦broken vertical bar
167 &#167; &#xa7; § § &sect; § section sign
168 &#168; &#xa8; ¨ ¨ &uml; ¨ umlaut (diaeresis)
169 &#169; &#xa9; © © &copy; © copyright
170 &#170; &#xaa; ª ª &ordf; ª feminine ordinal
171 &#171; &#xab; « « &laquo; « left angle quote, guillemot left
172 &#172; &#xac; ¬ ¬ &not; ¬ not sign
173 &#173; &#xad; ­ ­ &shy; ­ soft hyphen
174 &#174; &#xae; ® ® &reg; ® registered trademark
175 &#175; &#xaf; ¯ ¯ &macr; ¯ macron accent
176 &#176; &#xb0; ° ° &deg; ° degree sign
177 &#177; &#xb1; ± ± &plusmn; ±plus or minus
178 &#178; &#xb2; ² ² &sup2; ² superscript two
179 &#179; &#xb3; ³ ³ &sup3; ³ superscript three
180 &#180; &#xb4; ´ ´ &acute; ´ acute accent
181 &#181; &#xb5; µ µ &micro; µ micro sign
182 &#182; &#xb6; &para; paragraph sign
183 &#183; &#xb7; · · &middot; ·middle dot
184 &#184; &#xb8; ¸ ¸ &cedil; ¸ cedilla
185 &#185; &#xb9; ¹ ¹ &sup1; ¹ superscript one
186 &#186; &#xba; º º &ordm; º masculine ordinal
187 &#187; &#xbb; » » &raquo; » right angle quote, guillemot right
188 &#188; &#xbc; ¼ ¼ &frac14; ¼fraction one-fourth
189 &#189; &#xbd; ½ ½ &frac12; ½fraction one-half
190 &#190; &#xbe; ¾ ¾ &frac34; ¾fraction three-fourths
191 &#191; &#xbf; ¿ ¿ &iquest; ¿inverted question mark
192 &#192; &#xc0; À À &Agrave; ÀA, grave accent
193 &#193; &#xc1; Á Á &Aacute; ÁA, acute accent
194 &#194; &#xc2; Â Â &Acirc; Â A, circumflex accent
195 &#195; &#xc3; Ã Ã &Atilde; ÃA, tilde
196 &#196; &#xc4; Ä Ä &Auml; Ä A, diaereris or umlaut mark
197 &#197; &#xc5; Å Å &Aring; Å A, ring
198 &#198; &#xc6; Æ Æ &AElig; Æ AE diphthong (ligature)
199 &#199; &#xc7; Ç Ç &Ccedil; ÇC, cedilla
200 &#200; &#xc8; È È &Egrave; ÈE, grave accent
201 &#201; &#xc9; É É &Eacute; ÉE, acute accent
202 &#202; &#xca; Ê Ê &Ecirc; Ê E, circumflex accent
203 &#203; &#xcb; Ë Ë &Euml; Ë E, diaereris or umlaut mark
204 &#204; &#xcc; Ì Ì &Igrave; ÌI, grave accent
205 &#205; &#xcd; Í Í &Iacute; ÍI, acute accent
206 &#206; &#xce; Î Î &Icirc; Î I, circumflex accent
207 &#207; &#xcf; Ï Ï &Iuml; Ï I, diaereris or umlaut mark
208 &#208; &#xd0; Ð Ð &ETH; Ð Eth, Icelandic
209 &#209; &#xd1; Ñ Ñ &Ntilde; ÑN, tilde
210 &#210; &#xd2; Ò Ò &Ograve; ÒO, grave accent
211 &#211; &#xd3; Ó Ó &Oacute; ÓO, acute accent
212 &#212; &#xd4; Ô Ô &Ocirc; Ô O, circumflex accent
213 &#213; &#xd5; Õ Õ &Otilde; ÕO, tilde
214 &#214; &#xd6; Ö Ö &Ouml; Ö O, diaereris or umlaut mark
215 &#215; &#xd7; × × &times; × multiply sign
216 &#216; &#xd8; Ø Ø &Oslash; ØO, slash
217 &#217; &#xd9; Ù Ù &Ugrave; ÙU, grave accent
218 &#218; &#xda; Ú Ú &Uacute; ÚU, acute accent
219 &#219; &#xdb; Û Û &Ucirc; Û U, circumflex accent
220 &#220; &#xdc; Ü Ü &Uuml; Ü U, diaereris or umlaut mark
221 &#221; &#xdd; Ý Ý &Yacute; ÝY, acute accent
222 &#222; &#xde; Þ Þ &THORN; Þ THORN, Icelandic
223 &#223; &#xdf; ß ß &szlig; ß sharp s, German (sz ligature)
224 &#224; &#xe0; à à &agrave; àa, grave accent
225 &#225; &#xe1; á á &aacute; áa, acute accent
226 &#226; &#xe2; â â &acirc; â a, circumflex accent
227 &#227; &#xe3; ã ã &atilde; ãa, tilde
228 &#228; &#xe4; ä ä &auml; ä a, diaereris or umlaut mark
229 &#229; &#xe5; å å &aring; å a, ring
230 &#230; &#xe6; æ æ &aelig; æ ae diphthong (ligature)
231 &#231; &#xe7; ç ç &ccedil; çc, cedilla
232 &#232; &#xe8; è è &egrave; èe, grave accent
233 &#233; &#xe9; é é &eacute; ée, acute accent
234 &#234; &#xea; ê ê &ecirc; ê e, circumflex accent
235 &#235; &#xeb; ë ë &euml; ë e, diaereris or umlaut mark
236 &#236; &#xec; ì ì &igrave; ìi, grave accent
237 &#237; &#xed; í í &iacute; íi, acute accent
238 &#238; &#xee; î î &icirc; î i, circumflex accent
239 &#239; &#xef; ï ï &iuml; ï i, diaereris or umlaut mark
240 &#240; &#xf0; ð ð &eth; ð eth, Icelandic
241 &#241; &#xf1; ñ ñ &ntilde; ñn, tilde
242 &#242; &#xf2; ò ò &ograve; òo, grave accent
243 &#243; &#xf3; ó ó &oacute; óo, acute accent
244 &#244; &#xf4; ô ô &ocirc; ô o, circumflex accent
245 &#245; &#xf5; õ õ &otilde; õo, tilde
246 &#246; &#xf6; ö ö &ouml; ö o, diaereris or umlaut mark
247 &#247; &#xf7; ÷ ÷ &divide; ÷division sign
248 &#248; &#xf8; ø ø &oslash; øo, slash
249 &#249; &#xf9; ù ù &ugrave; ùu, grave accent
250 &#250; &#xfa; ú ú &uacute; úu, acute accent
251 &#251; &#xfb; û û &ucirc; û u, circumflex accent
252 &#252; &#xfc; ü ü &uuml; ü u, diaereris or umlaut mark
253 &#253; &#xfd; ý ý &yacute; ýy, acute accent
254 &#254; &#xfe; þ þ &thorn; þ thorn, Icelandic
255 &#255; &#xff; ÿ ÿ &yuml; ÿ y, diaereris or umlaut mark

The following characters should not be rendered by any browser. However, MS Windows uses the character set Code Page 1252 (CP1252), which is a superset of ISO 8859-1, defining several characters between 128 and 159. HTML authors should be using the ISO 10646 replacements for these , which will be understood by HTML 4.0 compliant browsers. MS Windows browsers can then render these by displaying the appropriate CP1252 character.

Number Numeric Entity Description CP1252 Description
Entity Character
Decimal Hex Dec Hex
0 &#0; &#x0;
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值