Shashwat Anand <anand.shash...@gmail.com> added the comment: from email.charset.ALIASES most of them failed to be recognize by codecs module.
>>> for i in email.charset.ALIASES.keys(): ... try: ... codecs.lookup(i) ... except LookupError: ... print("Not recognized by codecs : alias {} mapped to {}".format(i, email.charset.ALIASES[i])) ... ... Not recognized by codecs : alias latin-8 mapped to iso-8859-14 Not recognized by codecs : alias latin-9 mapped to iso-8859-15 Not recognized by codecs : alias latin-2 mapped to iso-8859-2 Not recognized by codecs : alias latin-3 mapped to iso-8859-3 <codecs.CodecInfo object for encoding iso8859-1 at 0x10160af58> Not recognized by codecs : alias latin-6 mapped to iso-8859-10 Not recognized by codecs : alias latin-7 mapped to iso-8859-13 Not recognized by codecs : alias latin-4 mapped to iso-8859-4 Not recognized by codecs : alias latin-5 mapped to iso-8859-9 <codecs.CodecInfo object for encoding euc_jp at 0x1016260b8> Not recognized by codecs : alias latin-10 mapped to iso-8859-16 <codecs.CodecInfo object for encoding ascii at 0x101626120> Not recognized by codecs : alias latin_10 mapped to iso-8859-16 <codecs.CodecInfo object for encoding iso8859-1 at 0x10160aae0> Not recognized by codecs : alias latin_2 mapped to iso-8859-2 Not recognized by codecs : alias latin_3 mapped to iso-8859-3 Not recognized by codecs : alias latin_4 mapped to iso-8859-4 Not recognized by codecs : alias latin_5 mapped to iso-8859-9 Not recognized by codecs : alias latin_6 mapped to iso-8859-10 Not recognized by codecs : alias latin_7 mapped to iso-8859-13 Not recognized by codecs : alias latin_8 mapped to iso-8859-14 Not recognized by codecs : alias latin_9 mapped to iso-8859-15 <codecs.CodecInfo object for encoding cp949 at 0x101626390> <codecs.CodecInfo object for encoding euc_kr at 0x101626530> So basically apart from latin-1 all the latin* failed to be recognized by codecs. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue8898> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com