Foolish question about NSStrings
Foolish question about NSStrings
- Subject: Foolish question about NSStrings
- From: Chris Ridd <email@hidden>
- Date: Wed, 27 Nov 2002 19:09:31 +0000
How do you construct a static NSString in source code that contains
arbitrary Unicode characters while keeping the source code in ASCII?
What I want to do is something like this:
NSString *foo = @"Price is \u20ac99.95";
I was expecting something like "\uxxxx" but the compiler doesn't like that.
None of the obvious documentation (gcc docs, c preprocessor docs, Objc-C
Programming Language) discusses this, and a few searches on mamasam didn't
turn anything useful up apart from a similar (and unanswered!) question.
Cheers,
Chris
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.