Re: 8-bit chars in @""
Re: 8-bit chars in @""
- Subject: Re: 8-bit chars in @""
- From: Ali Ozer <email@hidden>
- Date: Wed, 20 Mar 2002 09:39:06 -0800
The interpretation of non-ASCII characters will depend on at least two
factors: How your compiler interprets them and what the default system
encoding of the user is. As a result, what might look proper to you
when compiled with gcc 2.95 and running in English might display wrong
in other circumstances.
So: Do not use non-ASCII chars in constant strings. Ideally we'd get
the compiler to outright reject them or at least warn. Lacking that we
might try to get in runtime warnings, like the CF equivalent, CFSTR()
already does.
Ali
On Wednesday, March 20, 2002, at 09:16 , Erik J. Barzeski wrote:
Hi,
Ondra Cada <email@hidden> tapped out:
Yup. Do believe the documentation and don't use them.
Why? It works fine. So that's the meat of the question... Why does it
work
when it say it shouldn't? Why shouldn't it just work the same as
NSString's
unicode support? Why only support 7-bit characters?
Use NSLocalizedString and companions to get any Unicode values -- you
can
easily do that even if they are in fact not localizable (with the
appropriate strings table directly in Resources).
I may do that... I'd still like to know why :)
_______________________________________________
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.