"Prinn, Craig" <craig.pr...@bowebellhowell.com> wrote in message news:6b49a56a6e493f4eba255f6f197f070f050e4fe...@bbh-mail1.bbh.priv...
I am looking for a way to translate and ebcidic file to ascii. Is there a pre-existing library for this, or do I need to do this from scratch? If
> from scratch and ideas on where to start?
There are a couple of EBCDIC codecs (see list of codecs in http://docs.python.org/library/codecs.html).
Try: open('file.txt').read().decode('ibm500').encode('ascii','replace') You'll get '?' for chars ascii doesn't support. -Mark _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor