FROM : Chris Ridd
DATE : Wed Nov 27 20:09:31 2002
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_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
DATE : Wed Nov 27 20:09:31 2002
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_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
| Related mails | Author | Date |
|---|---|---|
| Chris Ridd | Nov 27, 20:09 | |
| Erik J. Barzeski | Nov 27, 23:32 | |
| Chris Ridd | Nov 28, 08:10 | |
| Marco Binder | Nov 28, 10:48 | |
| Chris Ridd | Nov 28, 11:09 |






Cocoa mail archive

