[issue3649] IA5 Encoding should be in the default encodings

Amaury Forgeot d'Arc report at bugs.python.org
Fri Aug 22 21:20:26 CEST 2008


Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:

The provided file does not work for "EXTENSION" characters:

>>> import ia5
>>> u"[a]".encode("ia5")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "ia5.py", line 18, in encode
    return codecs.charmap_encode(input,errors,encoding_map)
TypeError: character mapping must be in range(256)

I doubt this can be achieved with just a charmap. You will have to roll
your own incremental stateful decoder.
Are you willing to do it?

----------
nosy: +amaury.forgeotdarc

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3649>
_______________________________________


More information about the Python-bugs-list mailing list