STINNER Victor <victor.stin...@gmail.com> added the comment: Use codecs.lookup(alias).name to the the normalize name of a codec. Examples:
>>> import codecs >>> codecs.lookup('utf-8').name 'utf-8' >>> codecs.lookup('iso-8859-1').name 'iso8859-1' >>> codecs.lookup('latin1').name 'iso8859-1' >>> codecs.lookup('iso2022_jp').name 'iso2022_jp' All issues look to be addressed, so I close the issue. Thanks for the report! ---------- nosy: +haypo resolution: -> fixed status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue13913> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com