Maarten Derickx <maarten.deri...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue24339>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to