How to encode(convert) ANSI text to UTF-8 (509 Views)
Reply
Occasional Advisor
Posts: 10
Registered: ‎07-09-2002
Message 1 of 3 (509 Views)
Accepted Solution

How to encode(convert) ANSI text to UTF-8

HP-UX 11.00
Any body who knows how to convert the encoding format ANSI text to UTF-8?

I need to extract data from Informix database and send it to other server in UTF-8 format.
But, current Informix does not support UNICODE and I have to convert this in manually.

What I know is to convert thru Windows notepad, but I want to do this in HP-UX box by shell script.

Please help me...

Thanks,
JT
Honored Contributor
Posts: 888
Registered: ‎11-22-1996
Message 2 of 3 (509 Views)

Re: How to encode(convert) ANSI text to UTF-8

You can use the iconv command to change code sets. I am not sure what you mean by "ANSI text". I would guess it is iso88591 or cp1252. The full list of supported code sets is in /usr/lib/nls/iconv/config.iconv .

iconv -f iso81 -t utf8 oldfile > newfile
Occasional Advisor
Posts: 10
Registered: ‎07-09-2002
Message 3 of 3 (509 Views)

Re: How to encode(convert) ANSI text to UTF-8

Thanks for your help ^^
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.