Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Mar 18, 2008, 05:02 PM   #1
Cheer
macrumors newbie
 
Join Date: Mar 2008
C: Setting Char Set

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.
Cheer is offline   0 Reply With Quote
Old Mar 18, 2008, 05:42 PM   #2
sord
macrumors 6502
 
Join Date: Jun 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.
__________________
12" iBook 1GHz 768MB RAM 60GB HD Airport Extreme [sold and missed]
17" iMac G5 1.6GHz 768MB RAM 160GB HD [sold]
PowerMac Quad 2.5GHz G5 2.5GB RAM
sord is offline   0 Reply With Quote
Old Mar 18, 2008, 06:47 PM   #3
Cheer
Thread Starter
macrumors newbie
 
Join Date: Mar 2008
Quote:
Originally Posted by sord View Post
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.
Cheer is offline   0 Reply With Quote
Old Mar 18, 2008, 07:33 PM   #4
yeroen
macrumors 6502a
 
yeroen's Avatar
 
Join Date: Mar 2007
Location: 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.
__________________
all Jarvis, all the time
yeroen is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
OpenGL ES: #define BUFFER_OFFSET(i) ((char *)NULL + (i)) explanation Blakeasd iPhone/iPad Programming 4 Jul 4, 2013 05:38 PM
Noob looking for guidance in start/set setting up my first home theater dLuu Apple TV and Home Theater 2 Dec 4, 2012 06:26 AM
How can I set “numbers” to return a specific integer in a set? rotarypower101 Mac Applications and Mac App Store 0 Sep 3, 2012 02:30 PM

Forum Jump

All times are GMT -5. The time now is 02:05 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC