Operating System - HP-UX
1748171 Members
4090 Online
108758 Solutions
New Discussion юеВ

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

 
SOLVED
Go to solution
JoonTae Park
Occasional Advisor

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
2 REPLIES 2
Mike Stroyan
Honored Contributor
Solution

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
JoonTae Park
Occasional Advisor

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

Thanks for your help ^^