[issue13913] utf-8 or utf8 or utf-8 (codec display name inconsistency)

STINNER Victor report at bugs.python.org
Tue Feb 14 01:19:46 CET 2012


STINNER Victor <victor.stinner at 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 <report at bugs.python.org>
<http://bugs.python.org/issue13913>
_______________________________________


More information about the Python-bugs-list mailing list