I am dealing with ASCII and EBCDIC files within my program. I need to be able determine (from within my program) if a file is EBCDIC, then convert it to ASCII. I have the conversion routine, but I need to be able to tell if a file is EBCDIC. Any ideas?
I have looked at a couple of hex dumps of EBCDIC files. So far both files start out with the following characters:
1E F1 F0 F0 F0 F0 F0 F0 F0 F0 F0 F1 1F F0 F0 F0
F0 F0 F1 40 40 40 40 F0 F0 40 F0
Do all EBCDIC files start this way?
Thanks in advance.