masa wrote in post #976743:
> Hi,
> Try to run the same script on a different environment, I mean a
> different OS. It may work.
>
> Best regards
> Masa


Hi Masa, thanks for the info.
The code does in fact work in windows, so I will try the iconv -1 when 
I'm next in the office. HPUX is definitely not friendly to Ruby. There 
seems to be a problem with installing anything at all.
I usually end up have to do some post-install fixups, where I don't 
really know what I'm doing !!!.
I feel I was lucky to have been able to install Ruby itself on HPUX.
I'll let you know how I get on,
Thanks again,
Tad

-- 
Posted via http://www.ruby-forum.com/.