unicode warning in ObjC
unicode warning in ObjC
- Subject: unicode warning in ObjC
- From: Hans van der Meer <email@hidden>
- Date: Tue, 11 Sep 2007 11:09:39 +0200
The following statement:
unichar character = [[NSString stringWithUTF8String: "\u03C0"]
characterAtIndex: 0];
gives me a warning message in XCode:
warning: universal character names are only valid in C++ and C99
This confuses me. I was under the impression that NSString can
contain and can handle characters in 16bit Unicode. Either I am doing
something wrong or I misunderstood something.
What do I have to do to get \u03C0 (the character pi) correctly and
without warning in my NSString's?
Hans van der Meer
_______________________________________________
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