PDA

View Full Version : C: Setting Char Set




Cheer
Mar 18, 2008, 05:02 PM
Hello,
I need to set char set Latin 4 (ISO-8859-4) to C program, because I need some other symbols, which are not stored in ANSI-C. Could anyone help me how to deal with that.



sord
Mar 18, 2008, 05:42 PM
C does not support other character sets by default. There are libraries (such as iconv) that add that support though. I've never used it though so I can't provide examples.

Cheer
Mar 18, 2008, 06:47 PM
There are libraries (such as iconv) that add that support though.

So I need to use that library then.. but I still can't find info how to do that.

yeroen
Mar 18, 2008, 07:33 PM
You can read all about it here:

http://www.gnu.org/software/libiconv/

And there are always the manpages to consult (reprinted in the link above).

The iconv package consists of just 4 functions in a shared library, and 1 command line utility. It's really simple and shouldn't be difficult to make use of in your program.