Simpler Navigation for Servers and Operating Systems
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
Languages and Scripting
cancel
Showing results for 
Search instead for 
Did you mean: 

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
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 ^^