PC Review


Reply
Thread Tools Rate Thread

EBCDIC to ASCII

 
 
=?Utf-8?B?UmFuamFu?=
Guest
Posts: n/a
 
      12th Jan 2005
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
 
Reply With Quote
 
 
 
 
Jon Skeet [C# MVP]
Guest
Posts: n/a
 
      12th Jan 2005
Ranjan <(E-Mail Removed)> wrote:
> 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.

--
Jon Skeet - <(E-Mail Removed)>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
 
Reply With Quote
 
Cor Ligthert
Guest
Posts: n/a
 
      12th Jan 2005
Ranjan,

ASCII is 7 bits
EBCDIC is 8 bits

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

Cor


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
EBCDIC conversion Arne Garvander Microsoft Dot NET Framework 3 13th Dec 2007 05:08 PM
EBCDIC to ASCII Chris H. Microsoft C# .NET 8 31st Jul 2004 12:33 PM
EBCDIC to ASCII Conversion gary Microsoft Excel Misc 1 30th Dec 2003 01:25 AM
Convert EBCDIC to ASCII file Gary Microsoft Excel Misc 5 26th Dec 2003 11:58 PM
convert IBM EBCDIC (AS400) to ASCII code Sunchai Microsoft Access External Data 1 10th Sep 2003 06:55 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:22 PM.