Operating System - HP-UX
1753365 Members
6035 Online
108792 Solutions
New Discussion

HPUX encoding filesets equivalent to IBM-1074 & ISO8859-1

 
ECM3
Occasional Contributor

HPUX encoding filesets equivalent to IBM-1074 & ISO8859-1

I am looking to replicate use of iconv function running on AIX to an equivalent use running under HPUX.  It appears that HPUX has its own unique encoding sets and have found it difficult so far to map them onto the more standard codesets names I have been familiar wit in LINUX and/or AIX....

 

example:

 

a typical use of iconv would be to convert a data file from IBM EBCDIC to UNIX ASCIII as follows

 

iconv -f IBM-1047 -t ISO8859-1

3 REPLIES 3
Patrick Wallek
Honored Contributor

Re: HPUX encoding filesets equivalent to IBM-1074 & ISO8859-1

You can use 'dd' to convert from EBCIDIC to ASCII on HP-UX.

 

There is an example in the 'dd' man page.  There are also a lot of hits from Google.

Dennis Handly
Acclaimed Contributor

Re: HPUX encoding filesets equivalent to IBM-1074 & ISO8859-1

>It appears that HPUX has its own unique encoding sets and have found it difficult so far to map them onto ...

 

I assume you have done "iconv -l" to get a list of all of them.

Or look at /usr/lib/nls/iconv/*config.iconv

 

The only one with IBM is IBM850.

ECM3
Occasional Contributor

Re: HPUX encoding filesets equivalent to IBM-1074 & ISO8859-1

Yes...I 've reviewed the sources you note....What I hoping was that maybe there was a mapping somewhare linking HP codeset names to those used to perform equivalent translations in other OS environments..... .