Solved

EBCDIC to ASCII conversion

Posted on 2010-09-15
2
215 Views
Last Modified: 2012-05-10
Hi Can someone help please.
I have a file that has been converted from ASCII to EBCDIC and i need to either search through the file for a aprticular string (my prefered option)eg . "123456"  a six digit number. or convert the whole file. to Ascii.
Have found an online converter but it only does small files and mine are around 10 meg
If this has to b e done in code is there a script i can use?  (not to hot on perl or VB)
Thanks
0
Comment
Question by:stopm
2 Comments
 
LVL 38

Accepted Solution

by:
Herman D'Hondt earned 250 total points
ID: 33697644
If you just want to search for the characters, you can use an EBCDIC table, e.g.:

http://www.astrodigital.org/digital/ebcdic.html

However, you will need a HEX editor to do the search. NotePad or equivalent won't let you search for arbitrary binary values (i.e. most EBCDIC characters).

Some editors understand EBCDIC. See, for example:

http://www.vedit.com/

To write a script you will need to use a lookup-table to do the conversion, as EBCDIC is a real mess: characters, symbols and control characters are all mixed up. In other words, read a byte, use the table to find the equivalent ASCII character, and write that byte.
0
 

Author Closing Comment

by:stopm
ID: 33773283
Thanks, still playing with v edit but looks like it will work for this issue
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Learn more about the importance of email disclaimers with our top 10 email disclaimer DOs and DON’Ts.
Whether you believe the “gig economy,” as it has been dubbed, is the next big economic paradigm shift (https://www.theguardian.com/commentisfree/2015/jul/26/will-we-get-by-gig-economy) or an overstated trend (http://www.wsj.com/articles/proof-of-a-g…
The Bounty Board allows you to request an article or video on any technical topic, or fulfill a bounty request to earn points. Watch this video to learn how to use the Bounty Board to get the content you want, earn points, and browse submitted bount…
Articles on a wide range of technology and professional topics are available on Experts Exchange. These resources are written by members, for members, and can be written about any topic you feel passionate about. Learn how to best write an article t…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now