C: Setting Char Set

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

  1. macrumors newbie

    Joined:
    Mar 18, 2008
    #1
    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.
     
  2. macrumors 6502

    Joined:
    Jun 16, 2004
    #2
    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. thread starter macrumors newbie

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

    yeroen

    Joined:
    Mar 8, 2007
    Location:
    Cambridge, MA
    #4
    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.
     

Share This Page