Re: default C String Encoding
Re: default C String Encoding
- Subject: Re: default C String Encoding
- From: Norbert Heger <email@hidden>
- Date: Thu, 08 Nov 2001 10:34:47 +0100
Ondra Cada <email@hidden> wrote:
>
>>>>>> Julien Jalon (JJ) wrote at Wed, 7 Nov 2001 05:33:52 +0100:
>
JJ> 1) according to the NSString doc, you can't change the default C String
>
JJ> encoding (you can get it with [NSString defaultCStringEncoding] but not
>
JJ> set it) :/
>
>
Maybe Apple can just use the code they bought, in which there was a small
>
simple file .../Foundation.framework/Resources/CStringEncoding.
>
>
The file just plain simple contained the default C string encoding number
>
(even ASCII, so as you can edit it easily). We in Czech Republis used to put
>
"9" or "15" there, and it worked like a charm...
I found that the default C string encoding depends on your language
preference:
English / German Language Preference
[NSString defaultCStringEncoding]: 30 (Mac OS Roman)
Japanese Language Preference
[NSString defaultCStringEncoding]: -2147483647 (Japanese (Mac OS))
I haven't tried other languages yet.
Best Regards, Norbert
PS: Please avoid cross postings to cocoa-dev and macosx-dev. The traffic on
these lists is already very high, and I assume that most of us are
subscribed to both lists.
_____________________________________________
Norbert Heger, Objective Development
http://www.obdev.at/