era added the comment: Closing the entire enhancement request just because one detail is off seems insane.
Anyway, until the day in the distant future when Python can support encoding names in common circulation, http://stackoverflow.com/a/1064191/874188 offers a crude workaround. import encodings if 'windows_874' not in encodings.aliases.aliases: encodings.aliases.aliases['windows_874'] = 'cp874' This is tricky in a number of ways; in practice, this snippet needs to be at the very start of your source file. Also, the underscore is correct even for email encoding names like =?windows-874?Q?hello=3F?= which use a dash (the dash gets remapped to underscore internally when looking up the encoding alias). ---------- nosy: +era _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue854511> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com