Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

EBCDIC to ASCII conversion

Posted on 2010-09-15
2
227 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:
hdhondt 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Communication with an active RFID 7 76
fountain pens in usa 6 57
Problem to App 4 97
Price for Fiber 13 33
I really like Experts Exchange but the text formatting tags are pretty basic. For example in an article I wrote I found that when I put a "[bullet]" tag in front of a list of items and a closing "[/bullet]" tag at the end I expected that each item i…
Digital marketing agencies have encountered both the opportunities and difficulties that emerge from working with a wide-ranging organizations.
Notifications on Experts Exchange help you keep track of your activity and updates in one place. Watch this video to learn how to use them on the site to quickly access the content that matters to you.
Where to go on the main page to find the job listings. How to apply to a job that you are interested in from the list that is featured on our Careers page.

839 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