Re: Foolish question about NSStrings
Re: Foolish question about NSStrings
- Subject: Re: Foolish question about NSStrings
- From: Marco Binder <email@hidden>
- Date: Thu, 28 Nov 2002 10:48:00 +0100
Have you tried the first sugestion "use another accepted method and
declare it static if you want"? There is a class method
+ (id)stringWithUTF8String:(const char *)bytes
in NSString, which should do what you want.
marco
Am Donnerstag, 28.11.02 um 08:10 Uhr schrieb Chris Ridd:
method and declare it static if you want.
Alternatively, of course:
NSLocalizedString(@"myUnicodeString","localizable.strings can be
UTF");
I had another response suggesting the first workaround. I am using the
localizable.strings method already (and according to some Apple
documentation you can embed Unicode using \U as well as writing the
whole
file in say UTF-8), but that's obviously not a good solution if the
program
really does need specific strings of Unicode regardless of language
setting.
I think permitting something like \uxxxx would be a useful enhancement
for
the compiler.
--
|\ /| E-Mail: email@hidden WWW: www.marco-binder.de
| \/ | Telefon: 07531 / 94 19 94 Fax: 07531 / 94 19 92
| |ARCO Snail-Mail: Banater Str. 3 - 78467 Konstanz
BINDER _____________________________________________________
_______________________________________________
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.