Re: Converting ascii to ebcdic, and vice versa
There's always dd.
> From firstname.lastname@example.org Tue Apr 1 12:42:16 1997
> Resent-Date: 1 Apr 1997 20:42:46 -0000
> Resent-Cc: recipient list not shown:;@lists.debian.org
> X-Envelope-Sender: email@example.com
> From: "Christian Hudon" <firstname.lastname@example.org>
> Date: Tue, 1 Apr 1997 15:54:03 -0500
> To: "Walter L. Preuninger II" <email@example.com>
> Cc: firstname.lastname@example.org, email@example.com
> Subject: Re: Converting ascii to ebcdic, and vice versa
> Mime-Version: 1.0
> Resent-Message-ID: <"fpEy5.0.Z76.4DNGp"@debian>
> Resent-From: firstname.lastname@example.org
> X-Mailing-List: <email@example.com> archive/latest/1790
> X-Loop: firstname.lastname@example.org
> Resent-Sender: email@example.com
> On Apr 1, Walter L. Preuninger II wrote
> > I am looking for a library function to convert ascii to ebcdic, and/or
> > ebcdic to ascii. For example, '0' = 0x30 in ascii, 0xf0 in ebcdic.
> > I see the character maps in /usr/share/i18n/charmap, but have not found
> > any routines. Aix has a function called iconv.
> > I could build my own conversion tables, but that is a last resort.
> > Any ideas?
> If you want routines, my guess it that you'll probably have to roll your
> own, or at least modify already existing routines. But if you're looking
> for a program, try recode (there's a Debian package available). It will
> convert from anything to anything.