Help answer threads with 0 replies.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 06-27-2007, 07:17 AM   #1
LQ Newbie
Registered: Sep 2006
Posts: 5

Rep: Reputation: 0
Post 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.

Old 06-27-2007, 07:37 AM   #2
Registered: Nov 2005
Location: Land of Linux :: Finland
Distribution: win 10 | OpenBSD 6.1 | Fedora 26
Posts: 241

Rep: Reputation: 72
Does this help you?
Old 06-27-2007, 03:05 PM   #3
jim mcnamara
Registered: May 2002
Posts: 964

Rep: Reputation: 36
I use dd on HPUX and on Linux all the time for conversions.

What do you mean by "garbage"?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[bash] ASCII to HEX and hex to ascii ////// Programming 16 05-11-2016 07:29 AM
How do I enable the ASCII conversion chart characters Thane Ubuntu 5 06-01-2007 06:33 PM
EBCDIC to ASCII in Perl ppanyam Programming 1 01-06-2006 11:35 AM
ASCII C Help, Please InvisibleSniper Programming 33 10-10-2005 10:25 AM
ASCII help My_World Linux - General 1 04-13-2003 12:17 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:50 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration