Re: Unicode - Converting memory to match NSCell -stringvalue?
Re: Unicode - Converting memory to match NSCell -stringvalue?
- Subject: Re: Unicode - Converting memory to match NSCell -stringvalue?
- From: Chris Hanson <email@hidden>
- Date: Sat, 31 May 2003 13:28:23 -0400
On Saturday, May 31, 2003, at 04:13 AM, ruffnex wrote:
Yes, I think how the compiler treats string constants in strange
encodings is the key.
[snip]
Perhaps there is something in the docs, but I haven't seen it (yet).
In this case, the docs are the C language specification: C source code
files are 7-bit ASCII text only. The compiler is free to do whatever
it wants with anything outside that range. On Mac OS X, right now this
means such strings are interpreted at run-time as being in the whatever
the current system encoding is.
The localization architecture is the right thing to use if you need
anything outside 7-bit ASCII. Plus, it's trivially simple to use.
-- Chris
--
Chris Hanson, bDistributed.com, Inc. | Email: email@hidden
Custom Application Development | Phone: +1-847-372-3955
http://bdistributed.com/ | Fax: +1-847-589-3738
http://bdistributed.com/Articles/ | Personal Email: email@hidden
_______________________________________________
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.