• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: default C String Encoding
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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/


  • Prev by Date: Enhanced NSToolbar
  • Next by Date: Re: growing an NSView?
  • Previous by thread: default C String Encoding
  • Next by thread: Re: default C String Encoding
  • Index(es):
    • Date
    • Thread