[issue24339] iso6937 encoding missing

Maarten Derickx report at bugs.python.org
Tue Jun 29 11:07:49 EDT 2021


Maarten Derickx <maarten.derickx at navara.nl> added the comment:

Hi Marc-Andre Lemburg,

Thanks for your responses and guidance. At least your pointers to charmap_encode and charmap_decode helped, since it shows at least what the general idea is on how to deal with these types of encodings.

In the mean time I did produce some successes. I wrote some python code that can create character mappings based on the table in http://webstore.iec.ch/preview/info_isoiec6937%7Bed3.0%7Den.pdf so that we can be sure that there are no human errors in generating the mappings.

I think my further approach is to write pure python versions of charmap_encode and charmap_decode that can handle the general case of multi byte encodings to unicode case. This won't be as fast as using the builtins written c. But at least gives maintainable and hopefully reusable code.

Maybe later the c-implementation can be updated as well.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue24339>
_______________________________________


More information about the Python-bugs-list mailing list