C: Setting Char Set

Discussion in 'Mac Programming' started by Cheer, Mar 18, 2008.

  1. Cheer macrumors newbie

    Mar 18, 2008
    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.
  2. sord macrumors 6502

    Jun 16, 2004
    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.
  3. Cheer thread starter macrumors newbie

    Mar 18, 2008
    So I need to use that library then.. but I still can't find info how to do that.
  4. yeroen macrumors 6502a


    Mar 8, 2007
    Cambridge, MA
    You can read all about it here:


    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.

Share This Page