LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Conversion from EBCDIC to ASCII (https://www.linuxquestions.org/questions/programming-9/conversion-from-ebcdic-to-ascii-564818/)

aravindts 06-27-2007 07:17 AM

Conversion from EBCDIC to ASCII
 
Hi All,

I have a requirement to convert an EBCDIC file to ASCII.
I tried to use dd command, but it produces junk characters in resulting output.The file is basically an extract prepared from a couple of tables and has a header and a footer.

Any help/Pointers/Or code snippets to convert EBCDIC to ASCII and ASCII to EBCDIC is appreciated.

It is HP-UX B 11.11 OS.

Thanks,
Aravind

////// 06-27-2007 07:37 AM

Does this help you?
http://search.cpan.org/~cxl/Convert-...vert/EBCDIC.pm

jim mcnamara 06-27-2007 03:05 PM

I use dd on HPUX and on Linux all the time for conversions.

What do you mean by "garbage"?


All times are GMT -5. The time now is 07:08 PM.