ANSI (Windows-1252)
ANSI was the default character set in Windows up to Windows 95.
ANSI is also called Windows-1252.
Important Note
ANSI and ISO-8859-1 are very similar. They only differ in 32 characters.
In ANSI, the characters from 128 to 159 are used for some useful characters such as the Euro symbol.
In ISO-8859-1 these characters are mapped to control characters which are useless in HTML.
Many web developers declare ISO-8859-1 and use these 32 values as if they were using Windows-1252.
Because of this common misunderstanding, browsers will change to Windows-1252 when ISO-8859-1 is declared. This is done for any DOCTYPE: HTML4, HTML5, and XHTML.
ANSI and ASCII
The first part of ANSI (entity numbers from 0-127) is the original ASCII character-set. It contains numbers, upper and lowercase English letters, and some special characters.
For a closer look, please study our Complete ASCII Reference.
The ANSI Character Set
Character | Number | Entity Name | Description |
---|---|---|---|
0 - 31 | Control characters (se below) | ||
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 | < | less-than sign |
= | 61 | equals sign | |
> | 62 | > | 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 capital letter N | |
O | 79 | Latin capital letter O | |
P | 80 | Latin capital letter P | |
Q | 81 | Latin capital letter Q | |
R | 82 | Latin capital letter R | |
S | 83 | Latin capital letter S | |
T | 84 | Latin capital letter T | |
U | 85 | Latin capital letter U | |
V | 86 | Latin capital letter V | |
W | 87 | Latin capital letter W | |
X | 88 | Latin capital letter X | |
Y | 89 | Latin capital letter Y | |
Z | 90 | Latin capital 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 small letter a | |
b | 98 | Latin small letter b | |
c | 99 | Latin small letter c | |
d | 100 | Latin small letter d | |
e | 101 | Latin small letter e | |
f | 102 | Latin small letter f | |
g | 103 | Latin small letter g | |
h | 104 | Latin small letter h | |
i | 105 | Latin small letter i | |
j | 106 | Latin small letter j | |
k | 107 | Latin small letter k | |
l | 108 | Latin small letter l | |
m | 109 | Latin small letter m | |
n | 110 | Latin small letter n | |
o | 111 | Latin small letter o | |
p | 112 | Latin small letter p | |
q | 113 | Latin small letter q | |
r | 114 | Latin small letter r | |
s | 115 | Latin small letter s | |
t | 116 | Latin small letter t | |
u | 117 | Latin small letter u | |
v | 118 | Latin small letter v | |
w | 119 | Latin small letter w | |
x | 120 | Latin small letter x | |
y | 121 | Latin small letter y | |
z | 122 | Latin small letter z | |
{ | 123 | left curly bracket | |
| | 124 | vertical line | |
} | 125 | right curly bracket | |
~ | 126 | tilde | |
127 | Control character (Se below) | ||
€ | 128 | € | euro sign |
129 | NOT USED | ||
‚ | 130 | ‚ | single low-9 quotation mark |
ƒ | 131 | ƒ | Latin small letter f with hook |
„ | 132 | „ | double low-9 quotation mark |
… | 133 | … | horizontal ellipsis |
† | 134 | † | dagger |
‡ | 135 | ‡ | double dagger |
ˆ | 136 | ˆ | modifier letter circumflex accent |
‰ | 137 | ‰ | per mille sign |
Š | 138 | Š | Latin capital letter S with caron |
‹ | 139 | ‹ | single left-pointing angle quotation mark |
Œ | 140 | Œ | Latin capital ligature OE |
141 | NOT USED | ||
Ž | 142 | Ž | Latin capital letter Z with caron |
143 | NOT USED | ||
144 | NOT USED | ||
‘ | 145 | ‘ | left single quotation mark |
’ | 146 | ’ | right single quotation mark |
“ | 147 | “ | left double quotation mark |
” | 148 | ” | right double quotation mark |
• | 149 | • | bullet |
– | 150 | – | en dash |
— | 151 | — | em dash |
˜ | 152 | ˜ | small tilde |
™ | 153 | ™ | trade mark sign |
š | 154 | š | Latin small letter s with caron |
› | 155 | › | single right-pointing angle quotation mark |
œ | 156 | œ | Latin small ligature oe |
157 | NOT USED | ||
ž | 158 | ž | Latin small letter z with caron |
Ÿ | 159 | Ÿ | Latin capital letter Y with diaeresis |
160 | | no-break space | |
¡ | 161 | ¡ | inverted exclamation mark |
¢ | 162 | ¢ | cent sign |
£ | 163 | £ | pound sign |
¤ | 164 | ¤ | currency sign |
¥ | 165 | ¥ | yen sign |
¦ | 166 | ¦ | broken bar |
§ | 167 | § | section sign |
¨ | 168 | ¨ | diaeresis |
© | 169 | © | copyright sign |
ª | 170 | ª | feminine ordinal indicator |
« | 171 | « | left-pointing double angle quotation mark |
¬ | 172 | ¬ | not sign |
| 173 | ­ | soft hyphen |
® | 174 | ® | registered sign |
¯ | 175 | ¯ | macron |
° | 176 | ° | degree sign |
± | 177 | ± | plus-minus sign |
² | 178 | ² | superscript two |
³ | 179 | ³ | superscript three |
´ | 180 | ´ | acute accent |
µ | 181 | µ | micro sign |
¶ | 182 | ¶ | pilcrow sign |
· | 183 | · | middle dot |
¸ | 184 | ¸ | cedilla |
¹ | 185 | ¹ | superscript one |
º | 186 | º | masculine ordinal indicator |
» | 187 | » | right-pointing double angle quotation mark |
¼ | 188 | ¼ | vulgar fraction one quarter |
½ | 189 | ½ | vulgar fraction one half |
¾ | 190 | ¾ | vulgar fraction three quarters |
¿ | 191 | ¿ | inverted question mark |
À | 192 | À | Latin capital letter A with grave |
Á | 193 | Á | Latin capital letter A with acute |
 | 194 |  | Latin capital letter A with circumflex |
à | 195 | à | Latin capital letter A with tilde |
Ä | 196 | Ä | Latin capital letter A with diaeresis |
Å | 197 | Å | Latin capital letter A with ring above |
Æ | 198 | Æ | Latin capital letter AE |
Ç | 199 | Ç | Latin capital letter C with cedilla |
È | 200 | È | Latin capital letter E with grave |
É | 201 | É | Latin capital letter E with acute |
Ê | 202 | Ê | Latin capital letter E with circumflex |
Ë | 203 | Ë | Latin capital letter E with diaeresis |
Ì | 204 | Ì | Latin capital letter I with grave |
Í | 205 | Í | Latin capital letter I with acute |
Î | 206 | Î | Latin capital letter I with circumflex |
Ï | 207 | Ï | Latin capital letter I with diaeresis |
Ð | 208 | Ð | Latin capital letter Eth |
Ñ | 209 | Ñ | Latin capital letter N with tilde |
Ò | 210 | Ò | Latin capital letter O with grave |
Ó | 211 | Ó | Latin capital letter O with acute |
Ô | 212 | Ô | Latin capital letter O with circumflex |
Õ | 213 | Õ | Latin capital letter O with tilde |
Ö | 214 | Ö | Latin capital letter O with diaeresis |
× | 215 | × | multiplication sign |
Ø | 216 | Ø | Latin capital letter O with stroke |
Ù | 217 | Ù | Latin capital letter U with grave |
Ú | 218 | Ú | Latin capital letter U with acute |
Û | 219 | Û | Latin capital letter U with circumflex |
Ü | 220 | Ü | Latin capital letter U with diaeresis |
Ý | 221 | Ý | Latin capital letter Y with acute |
Þ | 222 | Þ | Latin capital letter Thorn |
ß | 223 | ß | Latin small letter sharp s |
à | 224 | à | Latin small letter a with grave |
á | 225 | á | Latin small letter a with acute |
â | 226 | â | Latin small letter a with circumflex |
ã | 227 | ã | Latin small letter a with tilde |
ä | 228 | ä | Latin small letter a with diaeresis |
å | 229 | å | Latin small letter a with ring above |
æ | 230 | æ | Latin small letter ae |
ç | 231 | ç | Latin small letter c with cedilla |
è | 232 | è | Latin small letter e with grave |
é | 233 | é | Latin small letter e with acute |
ê | 234 | ê | Latin small letter e with circumflex |
ë | 235 | ë | Latin small letter e with diaeresis |
ì | 236 | ì | Latin small letter i with grave |
í | 237 | í | Latin small letter i with acute |
î | 238 | î | Latin small letter i with circumflex |
ï | 239 | ï | Latin small letter i with diaeresis |
ð | 240 | ð | Latin small letter eth |
ñ | 241 | ñ | Latin small letter n with tilde |
ò | 242 | ò | Latin small letter o with grave |
ó | 243 | ó | Latin small letter o with acute |
ô | 244 | ô | Latin small letter o with circumflex |
õ | 245 | õ | Latin small letter o with tilde |
ö | 246 | ö | Latin small letter o with diaeresis |
÷ | 247 | ÷ | division sign |
ø | 248 | ø | Latin small letter o with stroke |
ù | 249 | ù | Latin small letter u with grave |
ú | 250 | ú | Latin small letter u with acute |
û | 251 | û | Latin small letter with circumflex |
ü | 252 | ü | Latin small letter u with diaeresis |
ý | 253 | ý | Latin small letter y with acute |
þ | 254 | þ | Latin small letter thorn |
ÿ | 255 | ÿ | Latin small letter y with diaeresis |
ANSI Control Characters
The ANSI control characters (range 00-31, plus 127) were designed to control hardware devices.
Control characters (except horizontal tab, line feed, and carriage return) have nothing to do inside an HTML document.
Char | Number | 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 (ring) |
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 | 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 | 127 | delete (rubout) |