EBCDIC to ASCII

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi folks!
I am trying to convert EBCDIC file to ASCII file. the issues are
1) Can all EBCDIC file be converted to ASCII without loss of
information.(There is one character cent sign which is not in ASCII, how to
handle that?)
2)What about non printable characters in EBCDIC, do they all converted to
ASCII format?
Suggest some way.
Thanks n Regards
Ranjan
 
Ranjan said:
I am trying to convert EBCDIC file to ASCII file. the issues are
1) Can all EBCDIC file be converted to ASCII without loss of
information.(There is one character cent sign which is not in ASCII, how to
handle that?)

Only you can answer that, really - what should your application do with
cent signs? Do you *have* to use ASCII, or could you use Unicode?

(Note that there are lots of "flavours" of EBCDIC - the UK flavour has
the pound sign in, which isn't in ASCII, for instance.)
2)What about non printable characters in EBCDIC, do they all converted to
ASCII format?

There are various printed characters in EBCDIC-US which aren't in
ASCII. Basically, look at http://std.dkuug.dk/i18n/charmaps/EBCDIC-US
and note any characters where the Unicode value is above U0079.
 
Ranjan,

ASCII is 7 bits
EBCDIC is 8 bits

That will never go automaticly for the rest see Jons answer.

Cor
 
Back
Top