Gallery
Software
Music
Programming
Archive
Monday, Oct 14 Week 42

This document lists and compares different character sets.

Character sets

ASCII (7-Bit) 128 characters
ANSI, Windows 1252 (8-Bit) Identical to ASCII until value 127
ISO-8551-1 (8-Bit) Identical to ANSI, except for unused characters
Codepage 437 and 850, known from MS-DOS and early Windows-versions.
Unicode (8..32-Bit) Identical to ASCII until value 127 and ANSI until value 255.

$00..$1F: C0 control characters

Characters in this range (based on ASCII) are not for printing.
In HTML and ISO-8851-1 this range is not used.
In ASCII, ANSI, CP437 and CP850,- values are identical, but has different symbols.

Id Hex Title ASCII CP437
0 $00 C0: NULL NULL NULL
1 $01 C0: Start of header SOH
2 $02 C0: Start of text STX
3 $03 C0: End of text ETX
4 $04 C0: End of transmission EOT
5 $05 C0: Enquiry ENQ
6 $06 C0: Acknowledge ACK
7 $07 C0: Bell (ring) BEL
8 $08 C0: Backspace BS
9 $09 C0: Horizontal tab HT
10 $0A C0: Line feed LF
11 $0B C0: Vertical tab VT
12 $0C C0: Form feed FF
13 $0D C0: Carriage return CR
14 $0E C0: Shift out SO
15 $0F C0: Shift in SI
16 $10 C0: Data link escape DLE
17 $11 C0: Device control 1 DC1
18 $12 C0: Device control 2 DC2
19 $13 C0: Device control 3 DC3
20 $14 C0: Device control 4 DC4
21 $15 C0: Negative acknowledge NAK §
22 $16 C0: Synchronize SYN
23 $17 C0: End transmission block ETB
24 $18 C0: Cancel CAN
25 $19 C0: End of medium EM
26 $1A C0: Substitute SUB
27 $1B C0: Escape ESC
28 $1C C0: File separator FS
29 $1D C0: Group separator GS
30 $1E C0: Record separator RS
31 $1F C0: Unit separator US

$20..$7F: ASCII printable characters (latin)

Characters in this range are shared by all listed character-sets:
ASCII, ANSI (Windows 1252), ISO-8851-1, CP437, CP850 and UTF-8 (Unicode).
HTML entities are available for characters which are not letters and numbers.
Also note that value 127 is a C0-control character like seen in range 00-1F.

Id Hex Title Character HTML
32 $20 Space  
33 $21 Exclamation mark ! !
34 $22 Quotation mark " "
35 $23 Number sign # #
36 $24 Dollar $ $
37 $25 Percent % %
38 $26 Ampersand & &
39 $27 Apostrophe ' '
40 $28 Left parenthesis ( (
41 $29 Right parenthesis ) )
42 $2A Asterisk * *
43 $2B Plus sign + +
44 $2C Comma , ,
45 $2D Dash - ‐
46 $2E Period . .
47 $2F Solidus / /
48 $30 Number: 0 0 0
49 $31 Number: 1 1 1
50 $32 Number: 2 2 2
51 $33 Number: 3 3 3
52 $34 Number: 4 4 4
53 $35 Number: 5 5 5
54 $36 Number: 6 6 6
55 $37 Number: 7 7 7
56 $38 Number: 8 8 8
57 $39 Number: 9 9 9
58 $3A Colon : :
59 $3B Semicolon ; ;
60 $3C Less-than < &lt;
61 $3D Equals = &equals;
62 $3E Greater-than sign > &gt;
63 $3F Question mark ? &quest;
64 $40 Commercial at @ &commat;
65 $41 Upper-case A A A
66 $42 Upper-case B B B
67 $43 Upper-case C C C
68 $44 Upper-case D D D
69 $45 Upper-case E E E
70 $46 Upper-case F F F
71 $47 Upper-case G G G
72 $48 Upper-case H H H
73 $49 Upper-case I I I
74 $4A Upper-case J J J
75 $4B Upper-case K K K
76 $4C Upper-case L L L
77 $4D Upper-case M M M
78 $4E Upper-case N N N
79 $4F Upper-case O O O
80 $50 Upper-case P P P
81 $51 Upper-case Q Q Q
82 $52 Upper-case R R R
83 $53 Upper-case S S S
84 $54 Upper-case T T T
85 $55 Upper-case U U U
86 $56 Upper-case V V V
87 $57 Upper-case W W W
88 $58 Upper-case X X X
89 $59 Upper-case Y Y Y
90 $5A Upper-case Z Z Z
91 $5B Left square bracket [ &lsqb;
92 $5C Backslash \ &bsol;
93 $5D Right square bracket ] &rsqb;
94 $5E Circumflex accent ^ &caret;
95 $5F Underscore _ &lowbar;
96 $60 Grave accent ` &#96;
97 $61 Lower-case a a a
98 $62 Lower-case b b b
99 $63 Lower-case c c c
100 $64 Lower-case d d d
101 $65 Lower-case e e e
102 $66 Lower-case f f f
103 $67 Lower-case g g g
104 $68 Lower-case h h h
105 $69 Lower-case i i i
106 $6A Lower-case j j j
107 $6B Lower-case k k k
108 $6C Lower-case l l l
109 $6D Lower-case m m m
110 $6E Lower-case n n n
111 $6F Lower-case o o o
112 $70 Lower-case p p p
113 $71 Lower-case q q q
114 $72 Lower-case r r r
115 $73 Lower-case s s s
116 $74 Lower-case t t t
117 $75 Lower-case u u u
118 $76 Lower-case v v v
119 $77 Lower-case w w w
120 $78 Lower-case x x x
121 $79 Lower-case y y y
122 $7A Lower-case z z z
123 $7B Left curly bracket { &lcub;
124 $7C Vertical dash | &verbar;
125 $7D Right curly bracket } &rcub;
126 $7E Tilde ~ &tilde;
127 $7F C0: Delete DEL n/a

$80..$9F

This range is not used in ASCII and ISO-8851-1.
Characters differs between the listed sets.

Id Hex ANSI HTML (ANSI) CP437 HTML (CP437) CP850 HTML (CP850)
128 $80 &euro; Ç &Ccedil; Ç &Ccedil;
129 $81 n/a ü &uuml; ü &uuml;
130 $82 &sbquo; é &eacute; é &eacute;
131 $83 ƒ &fnof; â &acirc; â &acirc;
132 $84 &bdquo; ä &auml; ä &auml;
133 $85 &hellip; à &agrave; à &agrave;
134 $86 &dagger; å &aring; å &aring;
135 $87 &Dagger; ç &ccedil; ç &ccedil;
136 $88 ˆ &circ; ê &ecirc; ê &ecirc;
137 $89 &permil; ë &euml; ë &euml;
138 $8A Š &Scaron; è &egrave; è &egrave;
139 $8B &lsaquo; ï &iuml; ï &iuml;
140 $8C Œ &OElig; î &icirc; î &icirc;
141 $8D n/a ì &igrave; ì &igrave;
142 $8E Ž &Zcaron; Ä &Auml; Ä &Auml;
143 $8F n/a Å &Aring; Å &Aring;
144 $90 n/a É &Eacute; É &Eacute;
145 $91 &lsquo; æ &aelig; æ &aelig;
146 $92 &rsquo; Æ &AElig; Æ &AElig;
147 $93 &ldquo; ô &ocirc; ô &ocirc;
148 $94 &rdquo; ö &ouml; ö &ouml;
149 $95 &bull; ò &ograve; ò &ograve;
150 $96 &ndash; û &ucirc; û &ucirc;
151 $97 &mdash; ù &ugrave; ù &ugrave;
152 $98 ˜ &tilde; ÿ &yuml; ÿ &yuml;
153 $99 &trade; Ö &Ouml; Ö &Ouml;
154 $9A š &scaron; Ü &Uuml; Ü &Uuml;
155 $9B &rsaquo; ¢ &cent; ø &oslash;
156 $9C œ &oelig; £ &pound; £ &pound;
157 $9D n/a ¥ &yen; Ø &Oslash;
158 $9E ž &zcaron; × &times;
159 $9F Ÿ &Yuml; ƒ &fnof; ƒ &fnof;

$A0..$FF

This range is not used in ASCII.
Characters of ISO-8851-1 are identical to ANSI,-
but differs to Codepage 437 and 850.

Id Hex ANSI HTML (ANSI) CP437 HTML (CP437) CP850 HTML (CP850)
160 $A0   &nbsp; á &aacute; á &aacute;
161 $A1 ¡ &iexcl; í &iacute; í &iacute;
162 $A2 ¢ &cent; ó &oacute; ó &oacute;
163 $A3 £ &pound; ú &uacute; ú &uacute;
164 $A4 ¤ &curren; ñ &ntilde; ñ &ntilde;
165 $A5 ¥ &yen; Ñ &Ntilde; Ñ &Ntilde;
166 $A6 ¦ &brvbar; ª &ordf; ª &ordf;
167 $A7 § &sect; º &ordm; º &ordm;
168 $A8 ¨ &uml; ¿ &iquest; ¿ &iquest;
169 $A9 © &copy; - ® &reg;
170 $AA ª &ordf; ¬ &not; ¬ &not;
171 $AB « &laquo; ½ &frac12; ½ &frac12;
172 $AC ¬ &not; ¼ &frac14; ¼ &frac14;
173 $AD - ¡ &iexcl; ¡ &iexcl;
174 $AE ® &reg; « &laquo; « &laquo;
175 $AF ¯ &macr; » &raquo; » &raquo;
176 $B0 ° &deg;
177 $B1 ± &plusmn;
178 $B2 ² &sup2;
179 $B3 ³ &sup3;
180 $B4 ´ &acute;
181 $B5 µ &micro; Á &Aacute;
182 $B6 &para; Â &Acirc;
183 $B7 · &middot; À &Agrave;
184 $B8 ¸ &cedil; © &copy;
185 $B9 ¹ &sup1;
186 $BA º &ordm;
187 $BB » &raquo;
188 $BC ¼ &frac14;
189 $BD ½ &frac12; ¢ &cent;
190 $BE ¾ &frac34; ¥ &yen;
191 $BF ¿ &iquest;
192 $C0 À &Agrave;
193 $C1 Á &Aacute;
194 $C2 Â &Acirc;
195 $C3 Ã &Atilde;
196 $C4 Ä &Auml;
197 $C5 Å &Aring;
198 $C6 Æ &AElig; ã &atilde;
199 $C7 Ç &Ccedil; Ã &Atilde;
200 $C8 È &Egrave;
201 $C9 É &Eacute;
202 $CA Ê &Ecirc;
203 $CB Ë &Euml;
204 $CC Ì &Igrave;
205 $CD Í &Iacute;
206 $CE Î &Icirc;
207 $CF Ï &Iuml; ¤ &curren;
208 $D0 Ð &ETH; ð &eth;
209 $D1 Ñ &Ntilde; Ð &ETH;
210 $D2 Ò &Ograve; Ê &Ecirc;
211 $D3 Ó &Oacute; Ë &Euml;
212 $D4 Ô &Ocirc; È &Egrave;
213 $D5 Õ &Otilde; ı &inodot;
214 $D6 Ö &Ouml; Í &Iacute;
215 $D7 × &times; Î &Icirc;
216 $D8 Ø &Oslash; Ï &Iuml;
217 $D9 Ù &Ugrave;
218 $DA Ú &Uacute;
219 $DB Û &Ucirc;
220 $DC Ü &Uuml;
221 $DD Ý &Yacute; ¦ &brvbar;
222 $DE Þ &THORN; Ì &Igrave;
223 $DF ß &szlig;
224 $E0 à &agrave; α &alpha; Ó &Oacute;
225 $E1 á &aacute; ß &szlig; ß &szlig;
226 $E2 â &acirc; Γ &Gamma; Ô &Ocirc;
227 $E3 ã &atilde; π &pi; Ò &Ograve;
228 $E4 ä &auml; Σ &Sigma; õ &otilde;
229 $E5 å &aring; σ &sigma; Õ &Otilde;
230 $E6 æ &aelig; µ &micro; µ &micro;
231 $E7 ç &ccedil; τ &tau; þ &thorn;
232 $E8 è &egrave; Φ &Phi; Þ &THORN;
233 $E9 é &eacute; Θ &Theta; Ú &Uacute;
234 $EA ê &ecirc; Ω &Omega; Û &Ucirc;
235 $EB ë &euml; δ &delta; Ù &Ugrave;
236 $EC ì &igrave; &infin; ý &yacute;
237 $ED í &iacute; φ &phi; Ý &Yacute;
238 $EE î &icirc; ε &epsilon; ¯ &macr;
239 $EF ï &iuml; &cap; ´ &acute;
240 $F0 ð &eth; &equiv; -
241 $F1 ñ &ntilde; ± &plusmn; ± &plusmn;
242 $F2 ò &ograve; &ge;
243 $F3 ó &oacute; &le; ¾ &frac34;
244 $F4 ô &ocirc; - &para;
245 $F5 õ &otilde; - § &sect;
246 $F6 ö &ouml; ÷ &divide; ÷ &divide;
247 $F7 ÷ &divide; &asymp; ¸ &cedil;
248 $F8 ø &oslash; ° &deg; ° &deg;
249 $F9 ù &ugrave; ¨ &uml;
250 $FA ú &uacute; · &middot; · &middot;
251 $FB û &ucirc; &radic; ¹ &sup1;
252 $FC ü &uuml; - ³ &sup3;
253 $FD ý &yacute; ² &sup2; ² &sup2;
254 $FE þ &thorn;
255 $FF ÿ &yuml;   &nbsp;   &nbsp;

Related pages of Character sets

Programming
Bytes and data-types
Colors and formats
File formats and fileinfo