using UTF-32 in NSString.
using UTF-32 in NSString.
- Subject: using UTF-32 in NSString.
- From: Georg Seifert <email@hidden>
- Date: Sun, 27 Jun 2010 23:18:41 +0200
Hi,
Does anyone has information on how to use Unicode code points higher than 0xFFFF.
I need to add some supplementary multilingual plane code points to a NSString.
I can use something like this:
NSString *aString = @"\\u0001ABCD"; //this prints fine but the [aString length] is 2
But if I have the unicode value as a int (unichar is to small)
int Char = 0x1ABCD;
NSString *aString = [NSString stringWithFormat:@"%C", Char]; //The resulting string contains one character with a unicode value of "ABCD".
What is the recommended way to use/create UTF-32 strings in Cocoa.
Best Regards
Georg
_______________________________________________
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