blob: 4cbaadea3ee60267483e70699c3ad931a46a298a [file] [log] [blame]
Guido van Rossum0229bf62000-03-10 23:17:24 +00001""" Encoding Aliases Support
2
3 This module is used by the encodings package search function to
4 map encodings names to module names.
5
Marc-André Lemburga40ea752002-10-04 11:58:24 +00006 Note that the search function normalizes the encoding names before
7 doing the lookup, so the mapping will have to map normalized
8 encoding names to module names.
Marc-André Lemburg462004e2002-02-10 21:36:20 +00009
10 Contents:
11
12 The following aliases dictionary contains mappings of all IANA
13 character set names for which the Python core library provides
14 codecs. In addition to these, a few Python specific codec
15 aliases have also been added.
16
Guido van Rossum0229bf62000-03-10 23:17:24 +000017"""
18aliases = {
19
Marc-André Lemburgc759f072004-08-05 12:43:30 +000020 # Please keep this list sorted alphabetically by value !
Marc-André Lemburgcd8a4cb2004-07-28 15:35:29 +000021
Marc-André Lemburg462004e2002-02-10 21:36:20 +000022 # ascii codec
23 '646' : 'ascii',
Marc-André Lemburga0af63b2002-02-11 17:43:46 +000024 'ansi_x3.4_1968' : 'ascii',
Marc-André Lemburg8dc5ff22002-10-04 16:30:42 +000025 'ansi_x3_4_1968' : 'ascii', # some email headers use this non-standard name
Marc-André Lemburga0af63b2002-02-11 17:43:46 +000026 'ansi_x3.4_1986' : 'ascii',
Marc-André Lemburg462004e2002-02-10 21:36:20 +000027 'cp367' : 'ascii',
28 'csascii' : 'ascii',
29 'ibm367' : 'ascii',
30 'iso646_us' : 'ascii',
Marc-André Lemburg9d158bb2002-10-04 11:51:39 +000031 'iso_646.irv_1991' : 'ascii',
Marc-André Lemburg462004e2002-02-10 21:36:20 +000032 'iso_ir_6' : 'ascii',
33 'us' : 'ascii',
34 'us_ascii' : 'ascii',
Guido van Rossum0229bf62000-03-10 23:17:24 +000035
Nick Coghlan9c1aed82013-11-23 11:13:36 +100036 # base64_codec codec
37 'base64' : 'base64_codec',
38 'base_64' : 'base64_codec',
Guido van Rossum0229bf62000-03-10 23:17:24 +000039
Hye-Shik Chang3e2a3062004-01-17 14:29:29 +000040 # big5 codec
41 'big5_tw' : 'big5',
42 'csbig5' : 'big5',
43
Hye-Shik Chang2bb146f2004-07-18 03:06:29 +000044 # big5hkscs codec
45 'big5_hkscs' : 'big5hkscs',
46 'hkscs' : 'big5hkscs',
47
Nick Coghlan9c1aed82013-11-23 11:13:36 +100048 # bz2_codec codec
49 'bz2' : 'bz2_codec',
Raymond Hettinger9a80c5d2003-09-23 20:21:01 +000050
Marc-André Lemburg462004e2002-02-10 21:36:20 +000051 # cp037 codec
Marc-André Lemburg5c94d332004-01-20 09:38:52 +000052 '037' : 'cp037',
Marc-André Lemburg462004e2002-02-10 21:36:20 +000053 'csibm037' : 'cp037',
54 'ebcdic_cp_ca' : 'cp037',
55 'ebcdic_cp_nl' : 'cp037',
56 'ebcdic_cp_us' : 'cp037',
57 'ebcdic_cp_wt' : 'cp037',
58 'ibm037' : 'cp037',
59 'ibm039' : 'cp037',
Guido van Rossum0229bf62000-03-10 23:17:24 +000060
Marc-André Lemburg462004e2002-02-10 21:36:20 +000061 # cp1026 codec
Marc-André Lemburg5c94d332004-01-20 09:38:52 +000062 '1026' : 'cp1026',
Marc-André Lemburg462004e2002-02-10 21:36:20 +000063 'csibm1026' : 'cp1026',
64 'ibm1026' : 'cp1026',
Guido van Rossum0229bf62000-03-10 23:17:24 +000065
Serhiy Storchakabe0c3252013-11-23 18:52:23 +020066 # cp1125 codec
67 '1125' : 'cp1125',
68 'ibm1125' : 'cp1125',
69 'cp866u' : 'cp1125',
70 'ruscii' : 'cp1125',
71
Marc-André Lemburg462004e2002-02-10 21:36:20 +000072 # cp1140 codec
Marc-André Lemburg5c94d332004-01-20 09:38:52 +000073 '1140' : 'cp1140',
Marc-André Lemburg462004e2002-02-10 21:36:20 +000074 'ibm1140' : 'cp1140',
Mark Hammond194bfb22001-06-04 02:31:23 +000075
Marc-André Lemburg462004e2002-02-10 21:36:20 +000076 # cp1250 codec
Marc-André Lemburg5c94d332004-01-20 09:38:52 +000077 '1250' : 'cp1250',
Marc-André Lemburg462004e2002-02-10 21:36:20 +000078 'windows_1250' : 'cp1250',
Guido van Rossum9e896b32000-04-05 20:11:21 +000079
Marc-André Lemburg462004e2002-02-10 21:36:20 +000080 # cp1251 codec
Marc-André Lemburg5c94d332004-01-20 09:38:52 +000081 '1251' : 'cp1251',
Marc-André Lemburg462004e2002-02-10 21:36:20 +000082 'windows_1251' : 'cp1251',
Marc-André Lemburg4fd73f02000-06-07 09:12:30 +000083
Marc-André Lemburg462004e2002-02-10 21:36:20 +000084 # cp1252 codec
Marc-André Lemburg5c94d332004-01-20 09:38:52 +000085 '1252' : 'cp1252',
Marc-André Lemburg462004e2002-02-10 21:36:20 +000086 'windows_1252' : 'cp1252',
Marc-André Lemburg4fd73f02000-06-07 09:12:30 +000087
Marc-André Lemburg462004e2002-02-10 21:36:20 +000088 # cp1253 codec
Marc-André Lemburg5c94d332004-01-20 09:38:52 +000089 '1253' : 'cp1253',
Marc-André Lemburg462004e2002-02-10 21:36:20 +000090 'windows_1253' : 'cp1253',
91
92 # cp1254 codec
Marc-André Lemburg5c94d332004-01-20 09:38:52 +000093 '1254' : 'cp1254',
Marc-André Lemburg462004e2002-02-10 21:36:20 +000094 'windows_1254' : 'cp1254',
95
96 # cp1255 codec
Marc-André Lemburg5c94d332004-01-20 09:38:52 +000097 '1255' : 'cp1255',
Marc-André Lemburg462004e2002-02-10 21:36:20 +000098 'windows_1255' : 'cp1255',
99
100 # cp1256 codec
Marc-André Lemburg5c94d332004-01-20 09:38:52 +0000101 '1256' : 'cp1256',
Marc-André Lemburg462004e2002-02-10 21:36:20 +0000102 'windows_1256' : 'cp1256',
103
104 # cp1257 codec
Marc-André Lemburg5c94d332004-01-20 09:38:52 +0000105 '1257' : 'cp1257',
Marc-André Lemburg462004e2002-02-10 21:36:20 +0000106 'windows_1257' : 'cp1257',
107
108 # cp1258 codec
Marc-André Lemburg5c94d332004-01-20 09:38:52 +0000109 '1258' : 'cp1258',
Marc-André Lemburg462004e2002-02-10 21:36:20 +0000110 'windows_1258' : 'cp1258',
111
R David Murray47d083c2014-03-07 21:00:34 -0500112 # cp273 codec
113 '273' : 'cp273',
114 'ibm273' : 'cp273',
115 'csibm273' : 'cp273',
116
Marc-André Lemburg462004e2002-02-10 21:36:20 +0000117 # cp424 codec
Marc-André Lemburg5c94d332004-01-20 09:38:52 +0000118 '424' : 'cp424',
Marc-André Lemburg462004e2002-02-10 21:36:20 +0000119 'csibm424' : 'cp424',
120 'ebcdic_cp_he' : 'cp424',
121 'ibm424' : 'cp424',
122
123 # cp437 codec
124 '437' : 'cp437',
125 'cspc8codepage437' : 'cp437',
126 'ibm437' : 'cp437',
127
128 # cp500 codec
Marc-André Lemburg5c94d332004-01-20 09:38:52 +0000129 '500' : 'cp500',
Marc-André Lemburg462004e2002-02-10 21:36:20 +0000130 'csibm500' : 'cp500',
131 'ebcdic_cp_be' : 'cp500',
132 'ebcdic_cp_ch' : 'cp500',
133 'ibm500' : 'cp500',
134
135 # cp775 codec
Marc-André Lemburg9ab88182004-12-10 21:54:35 +0000136 '775' : 'cp775',
Marc-André Lemburg462004e2002-02-10 21:36:20 +0000137 'cspc775baltic' : 'cp775',
138 'ibm775' : 'cp775',
139
140 # cp850 codec
141 '850' : 'cp850',
142 'cspc850multilingual' : 'cp850',
143 'ibm850' : 'cp850',
144
145 # cp852 codec
146 '852' : 'cp852',
147 'cspcp852' : 'cp852',
148 'ibm852' : 'cp852',
149
150 # cp855 codec
151 '855' : 'cp855',
152 'csibm855' : 'cp855',
153 'ibm855' : 'cp855',
154
155 # cp857 codec
156 '857' : 'cp857',
157 'csibm857' : 'cp857',
158 'ibm857' : 'cp857',
159
Benjamin Peterson5a6214a2010-06-27 22:41:29 +0000160 # cp858 codec
161 '858' : 'cp858',
162 'csibm858' : 'cp858',
163 'ibm858' : 'cp858',
164
Marc-André Lemburg462004e2002-02-10 21:36:20 +0000165 # cp860 codec
166 '860' : 'cp860',
167 'csibm860' : 'cp860',
168 'ibm860' : 'cp860',
169
170 # cp861 codec
171 '861' : 'cp861',
172 'cp_is' : 'cp861',
173 'csibm861' : 'cp861',
174 'ibm861' : 'cp861',
175
176 # cp862 codec
177 '862' : 'cp862',
178 'cspc862latinhebrew' : 'cp862',
179 'ibm862' : 'cp862',
180
181 # cp863 codec
182 '863' : 'cp863',
183 'csibm863' : 'cp863',
184 'ibm863' : 'cp863',
185
186 # cp864 codec
Marc-André Lemburg5c94d332004-01-20 09:38:52 +0000187 '864' : 'cp864',
Marc-André Lemburg462004e2002-02-10 21:36:20 +0000188 'csibm864' : 'cp864',
189 'ibm864' : 'cp864',
190
191 # cp865 codec
192 '865' : 'cp865',
193 'csibm865' : 'cp865',
194 'ibm865' : 'cp865',
195
196 # cp866 codec
197 '866' : 'cp866',
198 'csibm866' : 'cp866',
199 'ibm866' : 'cp866',
200
201 # cp869 codec
202 '869' : 'cp869',
203 'cp_gr' : 'cp869',
204 'csibm869' : 'cp869',
205 'ibm869' : 'cp869',
206
Hye-Shik Chang3e2a3062004-01-17 14:29:29 +0000207 # cp932 codec
208 '932' : 'cp932',
209 'ms932' : 'cp932',
210 'mskanji' : 'cp932',
211 'ms_kanji' : 'cp932',
212
213 # cp949 codec
214 '949' : 'cp949',
215 'ms949' : 'cp949',
216 'uhc' : 'cp949',
217
218 # cp950 codec
219 '950' : 'cp950',
220 'ms950' : 'cp950',
221
Hye-Shik Chang2bb146f2004-07-18 03:06:29 +0000222 # euc_jis_2004 codec
223 'jisx0213' : 'euc_jis_2004',
224 'eucjis2004' : 'euc_jis_2004',
225 'euc_jis2004' : 'euc_jis_2004',
226
Hye-Shik Chang3e2a3062004-01-17 14:29:29 +0000227 # euc_jisx0213 codec
Hye-Shik Chang3e2a3062004-01-17 14:29:29 +0000228 'eucjisx0213' : 'euc_jisx0213',
229
230 # euc_jp codec
231 'eucjp' : 'euc_jp',
232 'ujis' : 'euc_jp',
233 'u_jis' : 'euc_jp',
234
235 # euc_kr codec
236 'euckr' : 'euc_kr',
237 'korean' : 'euc_kr',
238 'ksc5601' : 'euc_kr',
239 'ks_c_5601' : 'euc_kr',
240 'ks_c_5601_1987' : 'euc_kr',
241 'ksx1001' : 'euc_kr',
242 'ks_x_1001' : 'euc_kr',
243
244 # gb18030 codec
245 'gb18030_2000' : 'gb18030',
246
247 # gb2312 codec
248 'chinese' : 'gb2312',
249 'csiso58gb231280' : 'gb2312',
250 'euc_cn' : 'gb2312',
251 'euccn' : 'gb2312',
252 'eucgb2312_cn' : 'gb2312',
253 'gb2312_1980' : 'gb2312',
254 'gb2312_80' : 'gb2312',
255 'iso_ir_58' : 'gb2312',
256
257 # gbk codec
258 '936' : 'gbk',
259 'cp936' : 'gbk',
260 'ms936' : 'gbk',
261
Nick Coghlan9c1aed82013-11-23 11:13:36 +1000262 # hex_codec codec
263 'hex' : 'hex_codec',
Marc-André Lemburg462004e2002-02-10 21:36:20 +0000264
Marc-André Lemburgcd8a4cb2004-07-28 15:35:29 +0000265 # hp_roman8 codec
266 'roman8' : 'hp_roman8',
267 'r8' : 'hp_roman8',
268 'csHPRoman8' : 'hp_roman8',
269
Hye-Shik Chang3e2a3062004-01-17 14:29:29 +0000270 # hz codec
271 'hzgb' : 'hz',
272 'hz_gb' : 'hz',
273 'hz_gb_2312' : 'hz',
274
275 # iso2022_jp codec
276 'csiso2022jp' : 'iso2022_jp',
277 'iso2022jp' : 'iso2022_jp',
278 'iso_2022_jp' : 'iso2022_jp',
279
280 # iso2022_jp_1 codec
281 'iso2022jp_1' : 'iso2022_jp_1',
282 'iso_2022_jp_1' : 'iso2022_jp_1',
283
284 # iso2022_jp_2 codec
285 'iso2022jp_2' : 'iso2022_jp_2',
286 'iso_2022_jp_2' : 'iso2022_jp_2',
287
Hye-Shik Chang2bb146f2004-07-18 03:06:29 +0000288 # iso2022_jp_2004 codec
289 'iso_2022_jp_2004' : 'iso2022_jp_2004',
290 'iso2022jp_2004' : 'iso2022_jp_2004',
291
Hye-Shik Changb619e4b2004-01-20 09:33:30 +0000292 # iso2022_jp_3 codec
Hye-Shik Chang3e2a3062004-01-17 14:29:29 +0000293 'iso2022jp_3' : 'iso2022_jp_3',
294 'iso_2022_jp_3' : 'iso2022_jp_3',
295
296 # iso2022_jp_ext codec
297 'iso2022jp_ext' : 'iso2022_jp_ext',
298 'iso_2022_jp_ext' : 'iso2022_jp_ext',
299
300 # iso2022_kr codec
301 'csiso2022kr' : 'iso2022_kr',
302 'iso2022kr' : 'iso2022_kr',
303 'iso_2022_kr' : 'iso2022_kr',
304
Marc-André Lemburg462004e2002-02-10 21:36:20 +0000305 # iso8859_10 codec
306 'csisolatin6' : 'iso8859_10',
307 'iso_8859_10' : 'iso8859_10',
Marc-André Lemburg9d158bb2002-10-04 11:51:39 +0000308 'iso_8859_10_1992' : 'iso8859_10',
Marc-André Lemburg462004e2002-02-10 21:36:20 +0000309 'iso_ir_157' : 'iso8859_10',
310 'l6' : 'iso8859_10',
311 'latin6' : 'iso8859_10',
312
Marc-André Lemburg9ab88182004-12-10 21:54:35 +0000313 # iso8859_11 codec
314 'thai' : 'iso8859_11',
315 'iso_8859_11' : 'iso8859_11',
316 'iso_8859_11_2001' : 'iso8859_11',
317
Marc-André Lemburg462004e2002-02-10 21:36:20 +0000318 # iso8859_13 codec
319 'iso_8859_13' : 'iso8859_13',
Thomas Wouters9fe394c2007-02-05 01:24:16 +0000320 'l7' : 'iso8859_13',
321 'latin7' : 'iso8859_13',
Marc-André Lemburg462004e2002-02-10 21:36:20 +0000322
323 # iso8859_14 codec
324 'iso_8859_14' : 'iso8859_14',
Marc-André Lemburg9d158bb2002-10-04 11:51:39 +0000325 'iso_8859_14_1998' : 'iso8859_14',
Marc-André Lemburg462004e2002-02-10 21:36:20 +0000326 'iso_celtic' : 'iso8859_14',
327 'iso_ir_199' : 'iso8859_14',
328 'l8' : 'iso8859_14',
329 'latin8' : 'iso8859_14',
330
331 # iso8859_15 codec
332 'iso_8859_15' : 'iso8859_15',
Thomas Wouters9fe394c2007-02-05 01:24:16 +0000333 'l9' : 'iso8859_15',
334 'latin9' : 'iso8859_15',
Marc-André Lemburg462004e2002-02-10 21:36:20 +0000335
Marc-André Lemburg9ab88182004-12-10 21:54:35 +0000336 # iso8859_16 codec
337 'iso_8859_16' : 'iso8859_16',
338 'iso_8859_16_2001' : 'iso8859_16',
339 'iso_ir_226' : 'iso8859_16',
340 'l10' : 'iso8859_16',
341 'latin10' : 'iso8859_16',
342
Marc-André Lemburg462004e2002-02-10 21:36:20 +0000343 # iso8859_2 codec
344 'csisolatin2' : 'iso8859_2',
345 'iso_8859_2' : 'iso8859_2',
Marc-André Lemburg9d158bb2002-10-04 11:51:39 +0000346 'iso_8859_2_1987' : 'iso8859_2',
Marc-André Lemburg462004e2002-02-10 21:36:20 +0000347 'iso_ir_101' : 'iso8859_2',
348 'l2' : 'iso8859_2',
349 'latin2' : 'iso8859_2',
350
351 # iso8859_3 codec
352 'csisolatin3' : 'iso8859_3',
353 'iso_8859_3' : 'iso8859_3',
Marc-André Lemburg9d158bb2002-10-04 11:51:39 +0000354 'iso_8859_3_1988' : 'iso8859_3',
Marc-André Lemburg462004e2002-02-10 21:36:20 +0000355 'iso_ir_109' : 'iso8859_3',
356 'l3' : 'iso8859_3',
357 'latin3' : 'iso8859_3',
358
359 # iso8859_4 codec
360 'csisolatin4' : 'iso8859_4',
361 'iso_8859_4' : 'iso8859_4',
Marc-André Lemburg9d158bb2002-10-04 11:51:39 +0000362 'iso_8859_4_1988' : 'iso8859_4',
Marc-André Lemburg462004e2002-02-10 21:36:20 +0000363 'iso_ir_110' : 'iso8859_4',
364 'l4' : 'iso8859_4',
365 'latin4' : 'iso8859_4',
366
367 # iso8859_5 codec
368 'csisolatincyrillic' : 'iso8859_5',
369 'cyrillic' : 'iso8859_5',
370 'iso_8859_5' : 'iso8859_5',
Marc-André Lemburg9d158bb2002-10-04 11:51:39 +0000371 'iso_8859_5_1988' : 'iso8859_5',
Marc-André Lemburg462004e2002-02-10 21:36:20 +0000372 'iso_ir_144' : 'iso8859_5',
373
374 # iso8859_6 codec
375 'arabic' : 'iso8859_6',
376 'asmo_708' : 'iso8859_6',
377 'csisolatinarabic' : 'iso8859_6',
378 'ecma_114' : 'iso8859_6',
379 'iso_8859_6' : 'iso8859_6',
Marc-André Lemburg9d158bb2002-10-04 11:51:39 +0000380 'iso_8859_6_1987' : 'iso8859_6',
Marc-André Lemburg462004e2002-02-10 21:36:20 +0000381 'iso_ir_127' : 'iso8859_6',
382
383 # iso8859_7 codec
384 'csisolatingreek' : 'iso8859_7',
385 'ecma_118' : 'iso8859_7',
386 'elot_928' : 'iso8859_7',
387 'greek' : 'iso8859_7',
388 'greek8' : 'iso8859_7',
389 'iso_8859_7' : 'iso8859_7',
Marc-André Lemburg9d158bb2002-10-04 11:51:39 +0000390 'iso_8859_7_1987' : 'iso8859_7',
Marc-André Lemburg462004e2002-02-10 21:36:20 +0000391 'iso_ir_126' : 'iso8859_7',
392
393 # iso8859_8 codec
394 'csisolatinhebrew' : 'iso8859_8',
395 'hebrew' : 'iso8859_8',
396 'iso_8859_8' : 'iso8859_8',
Marc-André Lemburg9d158bb2002-10-04 11:51:39 +0000397 'iso_8859_8_1988' : 'iso8859_8',
Marc-André Lemburg462004e2002-02-10 21:36:20 +0000398 'iso_ir_138' : 'iso8859_8',
399
400 # iso8859_9 codec
401 'csisolatin5' : 'iso8859_9',
402 'iso_8859_9' : 'iso8859_9',
Marc-André Lemburg9d158bb2002-10-04 11:51:39 +0000403 'iso_8859_9_1989' : 'iso8859_9',
Marc-André Lemburg462004e2002-02-10 21:36:20 +0000404 'iso_ir_148' : 'iso8859_9',
405 'l5' : 'iso8859_9',
406 'latin5' : 'iso8859_9',
407
Hye-Shik Chang3e2a3062004-01-17 14:29:29 +0000408 # johab codec
409 'cp1361' : 'johab',
410 'ms1361' : 'johab',
Marc-André Lemburg462004e2002-02-10 21:36:20 +0000411
412 # koi8_r codec
413 'cskoi8r' : 'koi8_r',
414
415 # latin_1 codec
Marc-André Lemburg7797be72005-10-21 14:02:28 +0000416 #
417 # Note that the latin_1 codec is implemented internally in C and a
418 # lot faster than the charmap codec iso8859_1 which uses the same
419 # encoding. This is why we discourage the use of the iso8859_1
420 # codec and alias it to latin_1 instead.
421 #
Marc-André Lemburg462004e2002-02-10 21:36:20 +0000422 '8859' : 'latin_1',
423 'cp819' : 'latin_1',
424 'csisolatin1' : 'latin_1',
425 'ibm819' : 'latin_1',
426 'iso8859' : 'latin_1',
Marc-André Lemburg7797be72005-10-21 14:02:28 +0000427 'iso8859_1' : 'latin_1',
Marc-André Lemburg462004e2002-02-10 21:36:20 +0000428 'iso_8859_1' : 'latin_1',
Marc-André Lemburg9d158bb2002-10-04 11:51:39 +0000429 'iso_8859_1_1987' : 'latin_1',
Marc-André Lemburg462004e2002-02-10 21:36:20 +0000430 'iso_ir_100' : 'latin_1',
431 'l1' : 'latin_1',
432 'latin' : 'latin_1',
433 'latin1' : 'latin_1',
434
435 # mac_cyrillic codec
436 'maccyrillic' : 'mac_cyrillic',
437
438 # mac_greek codec
439 'macgreek' : 'mac_greek',
440
441 # mac_iceland codec
442 'maciceland' : 'mac_iceland',
443
444 # mac_latin2 codec
445 'maccentraleurope' : 'mac_latin2',
446 'maclatin2' : 'mac_latin2',
447
448 # mac_roman codec
Marc-André Lemburgff562502010-08-21 10:58:31 +0000449 'macintosh' : 'mac_roman',
Marc-André Lemburg462004e2002-02-10 21:36:20 +0000450 'macroman' : 'mac_roman',
451
452 # mac_turkish codec
453 'macturkish' : 'mac_turkish',
454
455 # mbcs codec
456 'dbcs' : 'mbcs',
457
Hye-Shik Chang5c5316f2004-03-19 08:06:07 +0000458 # ptcp154 codec
459 'csptcp154' : 'ptcp154',
460 'pt154' : 'ptcp154',
461 'cp154' : 'ptcp154',
Philip Jenvey1309adb2009-11-17 03:43:14 +0000462 'cyrillic_asian' : 'ptcp154',
Hye-Shik Chang5c5316f2004-03-19 08:06:07 +0000463
Nick Coghlan9c1aed82013-11-23 11:13:36 +1000464 # quopri_codec codec
465 'quopri' : 'quopri_codec',
466 'quoted_printable' : 'quopri_codec',
467 'quotedprintable' : 'quopri_codec',
Marc-André Lemburg462004e2002-02-10 21:36:20 +0000468
Nick Coghlan9c1aed82013-11-23 11:13:36 +1000469 # rot_13 codec
470 'rot13' : 'rot_13',
Marc-André Lemburg462004e2002-02-10 21:36:20 +0000471
Hye-Shik Chang3e2a3062004-01-17 14:29:29 +0000472 # shift_jis codec
473 'csshiftjis' : 'shift_jis',
474 'shiftjis' : 'shift_jis',
475 'sjis' : 'shift_jis',
476 's_jis' : 'shift_jis',
477
Hye-Shik Chang2bb146f2004-07-18 03:06:29 +0000478 # shift_jis_2004 codec
479 'shiftjis2004' : 'shift_jis_2004',
480 'sjis_2004' : 'shift_jis_2004',
481 's_jis_2004' : 'shift_jis_2004',
482
Hye-Shik Chang3e2a3062004-01-17 14:29:29 +0000483 # shift_jisx0213 codec
484 'shiftjisx0213' : 'shift_jisx0213',
485 'sjisx0213' : 'shift_jisx0213',
486 's_jisx0213' : 'shift_jisx0213',
487
Marc-André Lemburg462004e2002-02-10 21:36:20 +0000488 # tactis codec
489 'tis260' : 'tactis',
490
Marc-André Lemburgc759f072004-08-05 12:43:30 +0000491 # tis_620 codec
492 'tis620' : 'tis_620',
493 'tis_620_0' : 'tis_620',
494 'tis_620_2529_0' : 'tis_620',
495 'tis_620_2529_1' : 'tis_620',
496 'iso_ir_166' : 'tis_620',
497
Marc-André Lemburg462004e2002-02-10 21:36:20 +0000498 # utf_16 codec
499 'u16' : 'utf_16',
500 'utf16' : 'utf_16',
501
502 # utf_16_be codec
503 'unicodebigunmarked' : 'utf_16_be',
504 'utf_16be' : 'utf_16_be',
505
506 # utf_16_le codec
507 'unicodelittleunmarked' : 'utf_16_le',
508 'utf_16le' : 'utf_16_le',
509
Walter Dörwald41980ca2007-08-16 21:55:45 +0000510 # utf_32 codec
511 'u32' : 'utf_32',
512 'utf32' : 'utf_32',
513
514 # utf_32_be codec
515 'utf_32be' : 'utf_32_be',
516
517 # utf_32_le codec
518 'utf_32le' : 'utf_32_le',
519
Marc-André Lemburg462004e2002-02-10 21:36:20 +0000520 # utf_7 codec
521 'u7' : 'utf_7',
522 'utf7' : 'utf_7',
Walter Dörwald007f8df2005-10-09 19:42:27 +0000523 'unicode_1_1_utf_7' : 'utf_7',
Marc-André Lemburg462004e2002-02-10 21:36:20 +0000524
525 # utf_8 codec
526 'u8' : 'utf_8',
527 'utf' : 'utf_8',
528 'utf8' : 'utf_8',
Marc-André Lemburg9d158bb2002-10-04 11:51:39 +0000529 'utf8_ucs2' : 'utf_8',
530 'utf8_ucs4' : 'utf_8',
Marc-André Lemburg462004e2002-02-10 21:36:20 +0000531
Nick Coghlan9c1aed82013-11-23 11:13:36 +1000532 # uu_codec codec
533 'uu' : 'uu_codec',
Marc-André Lemburg462004e2002-02-10 21:36:20 +0000534
Nick Coghlan9c1aed82013-11-23 11:13:36 +1000535 # zlib_codec codec
536 'zip' : 'zlib_codec',
537 'zlib' : 'zlib_codec',
Marc-André Lemburg2d920412001-05-15 12:00:02 +0000538
Hye-Shik Chang50d1f792008-08-23 08:03:03 +0000539 # temporary mac CJK aliases, will be replaced by proper codecs in 3.1
540 'x_mac_japanese' : 'shift_jis',
541 'x_mac_korean' : 'euc_kr',
542 'x_mac_simp_chinese' : 'gb2312',
543 'x_mac_trad_chinese' : 'big5',
Guido van Rossum0229bf62000-03-10 23:17:24 +0000544}