This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author koffie
Recipients John Helour, koffie, lemburg, loewis, mdk, serhiy.storchaka, vstinner, xiang.zhang
Date 2021-06-29.15:07:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1624979269.66.0.82600849097.issue24339@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2021-06-29 15:07:49koffiesetrecipients: + koffie, lemburg, loewis, vstinner, serhiy.storchaka, xiang.zhang, John Helour, mdk
2021-06-29 15:07:49koffiesetmessageid: <1624979269.66.0.82600849097.issue24339@roundup.psfhosted.org>
2021-06-29 15:07:49koffielinkissue24339 messages
2021-06-29 15:07:49koffiecreate