Accueil

Caractères ASCII

La norme ASCII (American Standard Code for Information Interchange « Code américain normalisé pour l'échange d'information ») est la norme de codage de caractères en informatique la plus connue et la plus largement compatible. C'est également la variante américaine du codage de caractères ISO/CEI 646. ASCII contient les caractères nécessaires pour écrire en anglais. Elle a été inventée par l'américain Bob Bemer en 1961. Elle est à la base de nombreuses autres normes comme ISO 8859-1 et Unicode qui l'étendent.

L'ASCII définit 128 caractères numérotés de 0 à 127 et codés en binaire de 0000000 à 1111111. Sept bits suffisent donc pour représenter un caractère codé en ASCII. Toutefois, les ordinateurs travaillant presque tous sur huit bits (un octet) depuis les années 1970, chaque caractère d'un texte en ASCII est stocké dans un octet dont le 8e bit est 0.

Les caractères de numéro 0 à 31 et le 127 ne sont pas affichables ; ils correspondent à des commandes de contrôle de terminal informatique. Le caractère numéro 32 est l'espace. Les autres caractères sont les chiffres arabes, les lettres latines majuscules et minuscules et quelques symboles de ponctuation.

De nombreuses normes de codage de caractères ont repris les codes ASCII, et défini d'autres caractères pour les codes supérieurs à 127. En particulier, beaucoup de pages de codes étendent l'ASCII en utilisant le 8e bit pour définir des caractères numérotés de 128 à 255. La norme ISO/CEI 8859 fournit des extensions pour diverses langues. Par exemple, l'ISO 8859-1, aussi appelée Latin-1, étend l'ASCII avec les caractères accentués utiles aux langues originaires d'Europe occidentale comme le français ou l'allemand.

Par abus de langage, on appelle souvent « ASCII » des normes qui étendent ASCII, mais qui ne sont pas compatibles entre elles. En particulier, les standards Windows-1252 (couramment utilisé sur Microsoft Windows dans les pays occidentaux), ISO 8859-1 (couramment utilisé sur Internet et UNIX) et la page de code 850 (couramment utilisée sur DOS) ne sont pas la norme ASCII. Cet abus de langage ne va pas sans causer des confusions causant des incompatibilités, souvent rendues visibles par le fait que les caractères non ASCII comme les « lettres accentuées » s'affichent mal. On écrit parfois ASCII de base pour bien identifier ASCII, et pas un standard plus étendu.

Afin d'unifier les différents codages de caractères complétant l'ASCII et y intégrer les codages complètement différents (le JIS pour le japonais par exemple), la norme Unicode a été inventée. Unicode définit des dizaines de milliers de codes, mais les 128 premiers restent compatibles avec ASCII.

En combinant la touche 'Alt' et un nombre décimal compris entre 0 et 255, on peut afficher le caractère ASCII correspondant au nombre saisi, c'est très utile pour les caractères qui n'apparaissent pas sur les touches du clavier.

Par exemple, pour afficher © (numéro ASCII = 184), il suffit de maintenir enfoncer la touche 'Alt', de saisir "184" sur le clavier et lorsqu'on relache la touche 'Alt', le caractère © s'affiche comme n'importe quel autre caractère.

Cette fonction peut être ignorée par certains logiciels.

DecOctHexBinaireCaractèreHtml
0 0 0 0 NUL (Null char.)
1 1 1 1 SOH (Start of Header) &#9786
2 2 2 10 STX (Start of Text) &#9787
3 3 3 11 ETX (End of Text) &#9829
4 4 4 100 EOT (End of Transmission) &#9830
5 5 5 101 ENQ (Enquiry) &#9827
6 6 6 110 ACK (Acknowledgment) &#9824
7 7 7 111 BEL (Bell) &#8226
8 10 8 1000 BS (Backspace) &#9686
9 11 9 1001 HT (Horizontal Tab) &#9675
10 12 a 1010 LF (Line Feed) &#9689
11 13 b 1011 VT (Vertical Tab) &#9794
12 14 c 1100 FF (Form Feed) &#9792
13 15 d 1101 CR (Carriage Return) &#9834
14 16 e 1110 SO (Shift Out) &#9835
15 17 f 1111 SI (Shift In) &#9788
16 20 10 10000 DLE (Data Link Escape) &#9658
17 21 11 10001 DC1 (XON) (Device Control 1) &#9668
18 22 12 10010 DC2 (Device Control 2) &#8597
19 23 13 10011 DC3 (XOFF) (Device Control 3) &#8252
20 24 14 10100 ô DC4 (Device Control 4) &#244
21 25 15 10101 õ NAK (Negative Acknowledgement) &#245
22 26 16 10110 SYN (Synchronous Idle) &#9644
23 27 17 10111 ETB (End of Trans. Block) &#8616
24 30 18 11000 CAN (Cancel) &#8593
25 31 19 11001 EM (End of Medium) &#8595
26 32 1a 11010 SUB (Substitute) &#8594
27 33 1b 11011 ESC (Escape) &#8592
28 34 1c 11100 FS (File Separator) &#8735
29 35 1d 11101 GS (Group Separator) &#8596
30 36 1e 11110 RS (Request to Send) (Record Separator) &#9650
31 37 1f 11111 US (Unit Separator) &#9660
32 40 20 100000 SP (Space) &#32
33 41 21 100001 ! exclamation mark &#33
34 42 22 100010 " double quote &#34
35 43 23 100011 # number sign &#35
36 44 24 100100 $ dollar sign &#36
37 45 25 100101 % percent &#37
38 46 26 100110 & ampersand &#38
39 47 27 100111 ' single quote &#39
40 50 28 101000 ( left opening parenthesis &#40
41 51 29 101001 ) right closing parenthesis &#41
42 52 2a 101010 * asterisk &#42
43 53 2b 101011 + plus &#43
44 54 2c 101100 , comma &#44
45 55 2d 101101 - minus or dash &#45
46 56 2e 101110 . dot &#46
47 57 2f 101111 / forwards lash &#47
48 60 30 110000 0 &#48
49 61 31 110001 1 &#49
50 62 32 110010 2 &#50
51 63 33 110011 3 &#51
52 64 34 110100 4 &#52
53 65 35 110101 5 &#53
54 66 36 110110 6 &#54
55 67 37 110111 7 &#55
56 70 38 111000 8 &#56
57 71 39 111001 9 &#57
58 72 3a 111010 : colon &#58
59 73 3b 111011 ; semi-colon &#59
60 74 3c 111100 < less than sign &#60
61 75 3d 111101 = equal sign &#61
62 76 3e 111110 > greater than sign &#62
63 77 3f 111111 ? question mark &#63
64 100 40 1000000 @ AT symbol &#64
65 101 41 1000001 A &#65
66 102 42 1000010 B &#66
67 103 43 1000011 C &#67
68 104 44 1000100 D &#68
69 105 45 1000101 E &#69
70 106 46 1000110 F &#70
71 107 47 1000111 G &#71
72 110 48 1001000 H &#72
73 111 49 1001001 I &#73
74 112 4a 1001010 J &#74
75 113 4b 1001011 K &#75
76 114 4c 1001100 L &#76
77 115 4d 1001101 M &#77
78 116 4e 1001110 N &#78
79 117 4f 1001111 O &#79
80 120 50 1010000 P &#80
81 121 51 1010001 Q &#81
82 122 52 1010010 R &#82
83 123 53 1010011 S &#83
84 124 54 1010100 T &#84
85 125 55 1010101 U &#85
86 126 56 1010110 V &#86
87 127 57 1010111 W &#87
88 130 58 1011000 X &#88
89 131 59 1011001 Y &#89
90 132 5a 1011010 Z &#90
91 133 5b 1011011 [ left opening bracket &#91
92 134 5c 1011100 \ back slash &#92
93 135 5d 1011101 ] right closing bracket &#93
94 136 5e 1011110 ^ caret cirumflex &#94
95 137 5f 1011111 _ underscore &#95
96 140 60 1100000 ` grave accent &#96
97 141 61 1100001 a &#97
98 142 62 1100010 b &#98
99 143 63 1100011 c &#99
100 144 64 1100100 d &#100
101 145 65 1100101 e &#101
102 146 66 1100110 f &#102
103 147 67 1100111 g &#103
104 150 68 1101000 h &#104
105 151 69 1101001 i &#105
106 152 6a 1101010 j &#106
107 153 6b 1101011 k &#107
108 154 6c 1101100 l &#108
109 155 6d 1101101 m &#109
110 156 6e 1101110 n &#110
111 157 6f 1101111 o &#111
112 160 70 1110000 p &#112
113 161 71 1110001 q &#113
114 162 72 1110010 r &#114
115 163 73 1110011 s &#115
116 164 74 1110100 t &#116
117 165 75 1110101 u &#117
118 166 76 1110110 v &#118
119 167 77 1110111 w &#119
120 170 78 1111000 x &#120
121 171 79 1111001 y &#121
122 172 7a 1111010 z &#122
123 173 7b 1111011 { left opening brace &#123
124 174 7c 1111100 | vertical bar &#124
125 175 7d 1111101 } right closing brace &#125
126 176 7e 1111110 ~ tilde &#126
127 177 7f 1111111 DEL (delete)
DecOctHexBinaireCaractèreHtml
128 200 80 10000000 Ç C cedilla &Ccedil
129 201 81 10000001 ü u umlaut &uuml
130 202 82 10000010 é e acute &eacute
131 203 83 10000011 â a circumflex &acirc
132 204 84 10000100 ä a umlaut &auml
133 205 85 10000101 à a grave &agrave
134 206 86 10000110 å a with a ring &aring
135 207 87 10000111 ç c cedilla &ccedil
136 210 88 10001000 ê e circumflex &ecirc
137 211 89 10001001 ë e umlaut &euml
138 212 8a 10001010 è e grave &egrave
139 213 8b 10001011 ï i umlaut &iuml
140 214 8c 10001100 î i circumflex &icirc
141 215 8d 10001101 ì i grave &igrave
142 216 8e 10001110 Ä A umlaut &Auml
143 217 8f 10001111 Å A with a ring &Aring
144 220 90 10010000 É E acute &Eacute
145 221 91 10010001 æ ae lig &aelig
146 222 92 10010010 Æ AE lig &AElig
147 223 93 10010011 ô o circumflex &ocirc
148 224 94 10010100 ö o umlaut &ouml
149 225 95 10010101 ò o grave &ograve
150 226 96 10010110 û u circumflex &ucirc
151 227 97 10010111 ù u grave &ugrave
152 230 98 10011000 ÿ y umlaut &yuml
153 231 99 10011001 Ö O umlaut &Ouml
154 232 9a 10011010 Ü U umlaut &Uuml
155 233 9b 10011011 ø o slashed &oslash
156 234 9c 10011100 £ pound &pound
157 235 9d 10011101 Ø O slashed &Oslash
158 236 9e 10011110 × multiplication sign &times
159 237 9f 10011111 &fnof florin sign &fnof
160 240 a0 10100000 á a acute &aacute
161 241 a1 10100001 í i acute &iacute
162 242 a2 10100010 ó o acute &oacute
163 243 a3 10100011 ú u acute &uacute
164 244 a4 10100100 ñ n tilde &ntilde
165 245 a5 10100101 Ñ N tilde &Ntilde
166 246 a6 10100110 ª ordinal indicator &ordf
167 247 a7 10100111 º degre symbol &ordm
168 250 a8 10101000 ¿ inverted question marks &iquest
169 251 a9 10101001 ® registered trademark symbol &reg
170 252 aa 10101010 ¬ negation (not) &not
171 253 ab 10101011 ½ one half &frac12
172 254 ac 10101100 ¼ quarter &frac14
173 255 ad 10101101 ¡ inverted exclamation marks &iexcl
174 256 ae 10101110 « left quotation mark &laquo
175 257 af 10101111 » right quotation mark &raquo
176 260 b0 10110000 &#9617
177 261 b1 10110001 &#9618
178 262 b2 10110010 &#9619
179 263 b3 10110011 | Box drawing character &#124
180 264 b4 10110100 Box drawing character &#9508
181 265 b5 10110101 Á A acute &Aacute
182 266 b6 10110110 Â A circumflex &Acirc
183 267 b7 10110111 À A grave &Agrave
184 270 b8 10111000 © copyright symbol &copy
185 271 b9 10111001 Box drawing character &#9571
186 272 ba 10111010 Box drawing character &#9553
187 273 bb 10111011 Box drawing character &#9559
188 274 bc 10111100 Box drawing character &#9565
189 275 bd 10111101 ¢ cent &cent
190 276 be 10111110 ¥ yen &yen
191 277 bf 10111111 Box drawing character &#9488
192 300 c0 11000000 Box drawing character &#9492
193 301 c1 11000001 Box drawing character &#9524
194 302 c2 11000010 Box drawing character &#9516
195 303 c3 11000011 Box drawing character &#9500
196 304 c4 11000100 Box drawing character &#9472
197 305 c5 11000101 Box drawing character &#9532
198 306 c6 11000110 ã a tilde &atilde
199 307 c7 11000111 Ã A tilde &Atilde
200 310 c8 11001000 Box drawing character &#9562
201 311 c9 11001001 Box drawing character &#9556
202 312 ca 11001010 Box drawing character &#9577
203 313 cb 11001011 Box drawing character &#9574
204 314 cc 11001100 Box drawing character &#9568
205 315 cd 11001101 Box drawing character &#9552
206 316 ce 11001110 Box drawing character &#9580
207 317 cf 11001111 ¤ currency sign &curren
208 320 d0 11010000 ð eth &eth
209 321 d1 11010001 Ð ETH &ETH
210 322 d2 11010010 Ê E circumflex &Ecirc
211 323 d3 11010011 Ë E umlaut &Euml
212 324 d4 11010100 È E grave &Egrave
213 325 d5 11010101 ı dotless i &#305
214 326 d6 11010110 Í I acute &Iacute
215 327 d7 11010111 Î I circumflex &Icirc
216 330 d8 11011000 Ï I umlaut &Iuml
217 331 d9 11011001 Box drawing character &#9496
218 332 da 11011010 Box drawing character &#9484
219 333 db 11011011 &#9608
220 334 dc 11011100 &#9604
221 335 dd 11011101 ¦ vertical bar &brvbar
222 336 de 11011110 Ì I grave &Igrave
223 337 df 11011111 &#9600
224 340 e0 11100000 Ó O acute &Oacute
225 341 e1 11100001 ß eszett &szlig
226 342 e2 11100010 Ô O circumflex &Ocirc
227 343 e3 11100011 Ò O grave &Ograve
228 344 e4 11100100 õ o tilde &otilde
229 345 e5 11100101 Õ O tilde &Otilde
230 346 e6 11100110 µ micro &micro
231 347 e7 11100111 Þ THORN &THORN
232 350 e8 11101000 þ thorn &thorn
233 351 e9 11101001 Ú U acute &Uacute
234 352 ea 11101010 Û U circumflex &Ucirc
235 353 eb 11101011 Ù U grave &Ugrave
236 354 ec 11101100 ý y acute &yacute
237 355 ed 11101101 Ý Y acute &Yacute
238 356 ee 11101110 ¯ macron &macr
239 357 ef 11101111 ´ acute &acute
240 360 f0 11110000 &ndash minus sign &ndash
241 361 f1 11110001 ± plus-minus sign &plusmn
242 362 f2 11110010 underline &#8215
243 363 f3 11110011 ¾ three quarters &frac34
244 364 f4 11110100 pilcrow &para
245 365 f5 11110101 § section sign &sect
246 366 f6 11110110 ÷ division sign &divide
247 367 f7 11110111 ¸ cedilla &cedil
248 370 f8 11111000 ° degree symbol &deg
249 371 f9 11111001 ¨ umlaut &uml
250 372 fa 11111010 · interpunct &middot
251 373 fb 11111011 ¹ one superscripted &sup1
252 374 fc 11111100 ³ cube &sup3
253 375 fd 11111101 ² square &sup2
254 376 fe 11111110 &#9632
255 377 ff 11111111 space &#32

Imprimer le contenu