1 """ Encoding Aliases Support
3 This module is used by the encodings package search function to
4 map encodings names to module names.
6 Note that the search function converts the encoding names to lower
7 case and replaces hyphens with underscores *before* performing the
27 'utf_16be': 'utf_16_be',
28 'utf_16le': 'utf_16_le',
29 'unicodebigunmarked': 'utf_16_be',
30 'unicodelittleunmarked': 'utf_16_le',
36 'ebcdic_cp_us': 'cp037',
43 'iso8859_1': 'latin_1',
44 'iso_8859_1': 'latin_1',
45 'iso_8859_10': 'iso8859_10',
46 'iso_8859_13': 'iso8859_13',
47 'iso_8859_14': 'iso8859_14',
48 'iso_8859_15': 'iso8859_15',
49 'iso_8859_2': 'iso8859_2',
50 'iso_8859_3': 'iso8859_3',
51 'iso_8859_4': 'iso8859_4',
52 'iso_8859_5': 'iso8859_5',
53 'iso_8859_6': 'iso8859_6',
54 'iso_8859_7': 'iso8859_7',
55 'iso_8859_8': 'iso8859_8',
56 'iso_8859_9': 'iso8859_9',
59 'maclatin2': 'mac_latin2',
60 'maccentraleurope': 'mac_latin2',
61 'maccyrillic': 'mac_cyrillic',
62 'macgreek': 'mac_greek',
63 'maciceland': 'mac_iceland',
64 'macroman': 'mac_roman',
65 'macturkish': 'mac_turkish',
68 'windows_1252': 'cp1252',
69 'windows_1254': 'cp1254',
70 'windows_1255': 'cp1255',
80 # The codecs for these encodings are not distributed with the
81 # Python core, but are included here for reference, since the
82 # locale module relies on having these aliases available.
85 'iso_2022_jp': 'jis_7',
92 # Content transfer/compression encodings
94 'base64': 'base64_codec',
95 'base_64': 'base64_codec',
100 'quopri': 'quopri_codec',
101 'quotedprintable': 'quopri_codec',
102 'quoted_printable': 'quopri_codec',