Initializing unichar variable with a human readable letter
Initializing unichar variable with a human readable letter
- Subject: Initializing unichar variable with a human readable letter
- From: vincent habchi <email@hidden>
- Date: Sat, 17 Jul 2010 22:58:03 +0200
Hi there,
I have a very simple problem: I'd like to affect to a unichar variable the value of the glyph é (or any non-ascii character).
If I (naively) write: "unichar foo = 'é';", I get a warning from the compiler about multibyte const and it does not work.
I'd like to avoid twisted constructs like [@"é" characterAtIndex:0], which works but looks weird, or esoteric notations like '\uXXXX' at whose reading nobody can figure out what the char is.
Does anybody knows about a better solution?
Thanks a lot and have a nice week-end
Vincent_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden