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 roskakori
Recipients ezio.melotti, lemburg, roskakori
Date 2013-07-02.17:47:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Currently Python includes a codec for EBCDIC international (cp500) but seems to be missing any further EBCDIC codecs. These encodings are widly used on mainframe platforms, popular in finance and insurance.

Descriptions of these codepages are available from IBM: <>. These descriptions also include mapping files although not in a format that can readily be processed by

So instead I used the codecs included with Java 1.7 to generate mappings for You can find them in the attached ZIP archive. As Java also runs on mainframe platforms, IBM should be interested in the Java codecs to be correct and complete.

The converter is available from <>. To build the cp*.txt for EBCDIC, simply run:

$ git clone
$ cd CodecMapper
$ ant ebcdic

IBM lists a large number of EBCDIC codepages, I only attached the ones listed in the German Wikipedia: <>. This also includes cp500 for comparison with your current cp500. And it lacks EDF03DRV because even Java does not support it.

Currently Java 1.7 supports 43 variants. To get a list of them, use:

$ ant list | grep -i ' ibm'

This would also fix issue 1097797: Encoding for Code Page 273 used by EBCDIC Germany Austria.
Date User Action Args
2013-07-02 17:47:11roskakorisetrecipients: + roskakori, lemburg, ezio.melotti
2013-07-02 17:47:11roskakorisetmessageid: <>
2013-07-02 17:47:11roskakorilinkissue18348 messages
2013-07-02 17:47:10roskakoricreate