1833819 Members
2753 Online
110063 Solutions
New Discussion

recode cyrillic to 1251

 
Stefan_6
Frequent Advisor

recode cyrillic to 1251

Hi everybody,

I've got the challenge to make a File encoded as ISO8859-5 into MS-readable form CP1251. Therefore I've installed the gnu-Package "recode 3.6" plus "gettext" plus "libiconv 1.9.2" on a HPUX 11.0.

The commandline to build the readable file: recode -v ISO-8859-5..CP1251 < bul.dat > read.dat

First I get the message "recode: Invalid input in step `ISO-8859-5..CP1251'"; then having a look at this read.dat with ms word I experienced that half of this file has been recoded fine but the other half is junk. Unnecessary to say that recoding the same file on a linux-box (test machine) goes perfectly fine ...

I've googled through internet but couldn't find any usefull info insofar any help is welcome ...

thx-a-lot
stg
1 REPLY 1
Kenneth Platz
Esteemed Contributor

Re: recode cyrillic to 1251

The "iconv" utility can do this, however, I do not believe HP-UX has a translation table to convert from iso8859-5 to CP1251. However, you can build such a translation table using the "genxlt" utility.
I think, therefore I am... I think!