Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Cheer

macrumors newbie
Original poster
Mar 18, 2008
5
0
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

macrumors 6502
Jun 16, 2004
352
0
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.
 

yeroen

macrumors 6502a
Mar 8, 2007
944
2
Cambridge, MA
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.