473,395 Members | 1,696 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

EBCDIC to Latin -1 Conversion in PERL

Hi,

I am using active perl 5.8.6 version. I have a requirement to convert an XML in EBCDIC format to Latin 1 format. I have no idea about how to go about it. Can anybody please help me in this.

For example I have the string in EBCDIC as

' TO: Hello ISO LATIN1 FROM: GSI Commerce ÿýûù÷õóñïëçåãáßÝÛ ÕÓÑÏÍËÉÇÅÃÁ¿½»¹·µ³±¯«©§¥£¡ þüúøöôòðîìêèæäâàÞÜÚØ ÖÔÒÐÎÌÊÆľ¼º¸¶ ´²°®¬ª¨¦¤¢|0'

and I need to convert this into Latin 1 char set.

Thanks in advance
Shanil.
Mar 5 '07 #1
1 1870
miller
1,089 Expert 1GB
I have no experience working with EBCDIC, but doing a quick google search brings up a few possible paths for you to explore:

1) perldoc Encode::EDCDIC

Core library for the encoding and decoding of EDCDIC. This is a strong candidate as it's still supported as of 2006.

2) cpan Convert::EBCDIC

This is a possible route, but unlikely, as it was last editted in 1997.

3) perldoc perlebcdic

This is general documentation concerning ebcdic and perl. It is probably worth a read if nothing else works. And probably worth a read regardless.

Good Luck,
- Miller
Mar 5 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

17
by: thinkfirst | last post by:
Hello CIWAH ... I want to propose full internationalization of three related websites: http://africadatabase.org/ http://people.africadatabase.org/ http://institutions.africadatabase.org/ My...
12
by: John Leslie | last post by:
I need to write a string to a file in EBCDIC. Do I need to do it character by character using a translation table, or is there a function to translate the whole string? (I am aware that I can...
6
by: R.A. | last post by:
Hi Is there some support for this file conversion in c#? Thanks
9
by: jeff M via .NET 247 | last post by:
I'm still having problems reading EBCDIC files. Currently itlooks like the lower range (0 to 127) is working. I have triedthe following code pages 20284, 20924, 1140, 37, 500 and 20127.By working I...
4
by: Ernie Otero | last post by:
Does anyone know where I can find a function to convert numeric data to overpunch format? I've looked around but I can't seem to find any. Ernie
5
by: Tin Gherdanarra | last post by:
This is probably a fringe programme... In the past I used a C-program to convert from EBCDIC (CP500) to ASCII/Unicode. As you might guess, this is simply a 256-byte lookup table. I lifted it...
10
by: NoelByron | last post by:
Hi! I'm struggling with the conversion of a UTF-8 string to latin-1. As far as I know the way to go is to decode the UTF-8 string to unicode and then encode it back again to latin-1? So I...
4
by: =?Utf-8?B?ai5hLiBoYXJyaW1hbg==?= | last post by:
Hi, I have read the "how to's" on MSDN including this one, http://msdn2.microsoft.com/en-us/library/36b93480.aspx, on reading/writing files in C#, but haven't found something that I can put...
44
by: Pilcrow | last post by:
Is there a way that a proram can detect whether it is operating in an ASCII or an EBCDIC environment?
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.