HTML ANSI(Windows-1252)Reference Manual


ANSI(Windows-1252)

ANSI is the default character set in Windows 95 and earlier Windows systems.

ANSI is also known as Windows-1252.


Important Notes

ANSI and ISO-8859-1 are very similar, differing only in 32 characters.

In ANSI, characters from 128 to 159 are used for useful characters, such as the euro sign.

In ISO-8859-1, these characters map to control characters that do not function in HTML.

Many web developers declare ISO-8859-1 and use these 32 values as if they were Windows-1252.

Due to this common misunderstanding, browsers will switch to Windows-1252 when ISO-8859-1 is declared. This applies to the following document types: HTML4, HTML5, and XHTML.


ANSI and ASCII

The first part of ANSI (entity numbers 0-127) is the original ASCII character set. It contains digits, uppercase and lowercase English letters, and some special characters.

For more information on ASCII, see thecomplete ASCII reference manual。


ANSI Character Set

Character Number Entity Name Description
  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
0 48   Digit zero
1 49   Digit one
2 50   Digit two
3 51   Digit three
4 52   Digit four
5 53   Digit five
6 54   Digit six
7 55   Digit seven
8 56   Digit eight
9 57   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   Latin capital letter A
B 66   Latin capital letter B
C 67   Latin capital letter C
D 68   Latin capital letter D
E 69   Latin capital letter E
F 70   Latin capital letter F
G 71   Latin capital letter G
H 72   Latin capital letter H
I 73   Latin capital letter I
J 74   Latin capital letter J
K 75   Latin capital letter K
L 76   Latin capital letter L
M 77   Latin capital letter M
N 78   Latin uppercase letter N
O 79   Latin uppercase letter O
P 80   Latin uppercase letter P
Q 81   Latin uppercase letter Q
R 82   Latin uppercase letter R
S 83   Latin uppercase letter S
T 84   Latin uppercase letter T
U 85   Latin uppercase letter U
V 86   Latin uppercase letter V
W 87   Latin uppercase letter W
X 88   Latin uppercase letter X
Y 89   Latin uppercase letter Y
Z 90   Latin uppercase letter Z
[ 91   Left square bracket
\ 92   Reverse solidus
] 93   Right square bracket
^ 94   Circumflex accent
_ 95   Low line
` 96   Grave accent
a 97   Latin lowercase letter a
b 98   Latin lowercase letter b
c 99   Latin lowercase letter c
d 100   Latin lowercase letter d
e 101   Latin lowercase letter e
f 102   Latin lowercase letter f
g 103   Latin lowercase letter g
h 104   Latin lowercase letter h
i 105   Latin lowercase letter i
j 106   Latin lowercase letter j
k 107   Latin lowercase letter k
l 108   Latin lowercase letter l
m 109   Latin lowercase letter m
n 110   Latin lowercase letter n
o 111   Latin lowercase letter o
p 112   Latin lowercase letter p
q 113   Latin lowercase letter q
r 114   Latin lowercase letter r
s 115   Latin lowercase letter s
t 116   Latin lowercase letter t
u 117   Latin lowercase letter u
v 118   Latin lowercase letter v
w 119   Latin lowercase letter w
x 120   Latin lowercase letter x
y 121   Latin lowercase letter y
z 122   Latin lowercase letter z
{ 123   Left curly bracket
| 124   Vertical line
} 125   Right curly bracket
~ 126   Tilde
  127   NOT USED
€ 128 &euro; Euro sign
  129   NOT USED
‚ 130 &sbquo; Single low-9 quotation mark
ƒ 131 &fnof; Latin small letter f with hook
„ 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; Latin uppercase letter S with caron
‹ 139 &lsaquo; Single left-pointing angle quotation mark
Œ 140 &OElig; Latin capital ligature OE
  141   NOT USED
Ž 142 &Zcaron; Latin uppercase letter Z with caron
  143   NOT USED
  144   NOT USED
' 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; Latin lowercase letter s with caron
› 155 &rsaquo; Right single-pointing angle quotation mark (single right-pointing angle quotation mark)
œ 156 &oelig; Latin small ligature oe
  157   NOT USED
ž 158 &zcaron; Latin small letter z with caron
Ÿ 159 &Yuml; Latin capital letter Y with diaeresis
  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;Superscript two
³179&sup3;Superscript three
´180&acute;Acute accent
µ181&micro;Micro sign
182&para;Pilcrow sign
·183&middot;Middle dot
¸184&cedil;Cedilla
¹185&sup1;Superscript one
º186&ordm;Masculine ordinal indicator
»187&raquo;Right-pointing double angle quotation mark
¼188&frac14;Vulgar fraction one quarter
½189&frac12;Vulgar fraction one half
¾190&frac34;Vulgar fraction three quarters
¿191&iquest;Inverted question mark
À192&Agrave;Latin capital letter A with grave
Á193&Aacute;Latin capital letter A with acute
Â194&Acirc;Latin capital letter A with circumflex
Ã195&Atilde;Latin capital letter A with tilde
Ä196&Auml;Latin capital letter A with diaeresis
Å197&Aring;Latin capital letter A with ring above
Æ198&AElig;Latin capital letter AE
Ç199&Ccedil;Latin capital letter C with cedilla
È200&Egrave;Latin capital letter E with grave
É201&Eacute;Latin capital letter E with acute
Ê202&Ecirc;Latin capital letter E with circumflex
Ë203&Euml;Latin capital letter E with diaeresis
Ì204&Igrave;Latin capital letter I with grave
Í205&Iacute;Latin capital letter I with acute
Î206&Icirc;Latin capital letter I with circumflex
Ï207&Iuml;Latin capital letter I with diaeresis
Ð208&ETH;Latin capital letter Eth
Ñ209&Ntilde;Latin capital letter N with tilde
Ò210&Ograve;Latin capital letter O with grave
Ó211&Oacute;Latin capital letter O with acute
Ô212&Ocirc;Latin capital letter O with circumflex
Õ213&Otilde;Latin capital letter O with tilde
Ö214&Ouml;Latin capital letter O with diaeresis
×215&times;Multiplication sign
Ø216&Oslash;Latin capital letter O with stroke
Ù217&Ugrave;Latin capital letter U with grave
Ú218&Uacute;Latin capital letter U with acute
Û219&Ucirc;Latin capital letter U with circumflex
Ü220&Uuml;Latin capital letter U with diaeresis
Ý221&Yacute;Latin capital letter Y with acute
Þ222&THORN;Latin capital letter Thorn
ß223&szlig;Latin small letter sharp s
à224&agrave;Latin small letter a with grave
á225&aacute;Latin small letter a with acute
â226&acirc;Latin small letter a with circumflex
ã227&atilde;Latin small letter a with tilde
ä228&auml;Latin small letter a with diaeresis
å229&aring;Latin small letter a with ring above
æ230&aelig;Latin small letter ae
ç231&ccedil;Latin small letter c with cedilla
è232&egrave;Latin small letter e with grave
é233&eacute;Latin small letter e with acute
ê234&ecirc;Latin small letter e with circumflex
ë235&euml;Latin small letter e with diaeresis
ì236&igrave;Latin small letter i with grave
í237&iacute;Latin small letter i with acute
î238&icirc;Latin small letter i with circumflex
ï239&iuml;Latin small letter i with diaeresis
ð240&eth;Latin small letter eth
ñ241&ntilde;Latin small letter n with tilde
ò242&ograve;Latin small letter o with grave
ó243&oacute;Latin small letter o with acute
ô244&ocirc;Latin small letter o with circumflex
õ245&otilde;Latin small letter o with tilde
ö246&ouml;Latin small letter o with diaeresis
÷247&divide;Division sign
ø248&oslash;Latin small letter o with stroke
ù249&ugrave;Latin small letter u with grave
ú250&uacute;Latin small letter u with acute
û251&ucirc;Latin small letter u with circumflex
ü252&uuml;Latin small letter u with diaeresis
ý253&yacute;Latin small letter y with acute
þ254&thorn;Latin small letter thorn
ÿ255&yuml;Latin small letter y with diaeresis


ANSI Control Characters

ANSI control characters (00-31, plus 127) were originally designed to control hardware devices such as printers and tape drives.

Control characters (other than horizontal tab, line feed, and carriage return) have no effect in HTML documents.

Character Code Description
NUL 00 Null character
SOH 01 Start of header
STX 02 Start of text
ETX 03 End of text
EOT 04 End of transmission
ENQ 05 Enquiry
ACK 06 Acknowledge
BEL 07 Bell
BS 08 Backspace
HT 09 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 Device control 1
DC2 18 Device control 2
DC3 19 Device control 3
DC4 20 Device control 4
NAK 21 Negative acknowledge
SYN 22 Synchronous idle
ETB 23 End of 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 127 Delete
Other extensions