EBCDIC & ASCII Conversion Routines Needed

EBCDIC & ASCII Conversion Routines Needed

Post by \ » Sat, 15 Nov 1997 04:00:00




> Hi,

> I need routines to convert data from ASCII to EBCDIC and vice versa.
> Can anyone point me to these utilities on the web or send them to me.

> TIA,

> Neil

man dd
 
 
 

EBCDIC & ASCII Conversion Routines Needed

Post by Andrew Giert » Sat, 15 Nov 1997 04:00:00



 >>
 >> Hi,
 >>
 >> I need routines to convert data from ASCII to EBCDIC and vice versa.
 >> Can anyone point me to these utilities on the web or send them to me.

The code is trivial; just use a straight lookup table.

It's getting the right table that's the hard part; to do that, you need
to know *which* EBCDIC you're talking about (and, indeed, whether you
want the results in 7-bit ASCII or, say, ISO-8859/1).

EBCDIC has hundreds of minor variants (which nevertheless differ in such
significant characters as '[') for different countries (and, I believe,
at least 3 variants in use within the US alone).

The GNU "recode" utility (available from ftp://prep.ai.mit.edu/pub/gnu
or any of the GNU mirror sites) contains plausible-looking translation
tables for several EBCDIC variants.

--
Andrew.

comp.unix.programmer FAQ: see <URL: http://www.erlenstar.demon.co.uk/unix/>
                           or <URL: http://www.whitefang.com/unix/>

 
 
 

1. SOS: C Routines for ASCII to EBCDIC Conversion and Vice-versa

Hi,

I am involved in developing the ISO/RDA protocol between CDC 920
and IBM 3090.  CDC 920 uses ASCII representation and the IBM
uses EBCDIC. I am looking for C routines that convert ASCII strings
into EBCDIC strings and vice-versa.  We need these DESPERATELY and
asap. If you have some information re: these, please let me know
asap. I would REALLY appreciate your help.

Very many thanks in advance.


(Office Phone: 612-782-7134)

2. Media Vision PAS16 Clone does it work?

3. S3 videocard

4. Conversion between ebcdic & ascii

5. XF86 +S3VirgeGX +DEC_PC5100

6. Need Information concerning EBCDIC to ASCII conversion

7. X config and Compudyne

8. EBCDIC/ASCII Conversion

9. dd EBCDIC to ASCII Conversion Problem

10. EBCDIC to ASCII conversion program

11. EBCDIC/ASCII Conversion With RPC To IBM Mainframe

12. EBCDIC to ASCII Conversion