EBCDIC to ASCII

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
 
J

Jon Skeet [C# MVP]

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.
 
C

Cor Ligthert

Ranjan,

ASCII is 7 bits
EBCDIC is 8 bits

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

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top