• 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: cString deprecated!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cString deprecated!


  • Subject: Re: cString deprecated!
  • From: Ali Ozer <email@hidden>
  • Date: Wed, 4 Sep 2002 09:09:51 -0700

If UTF-8 is always the best choice, why not just make it the
defaultCStringEncoding? Why shift the decision to each application
developer instead of the user or API maintainer?

UTF-8 is not always the best choice; the choice depends on the usage. For instance, a common usage pattern for cString is to interpret "legacy" documents and untagged 8-bit text; in those cases the interpretation might indeed depend on the user's default language and encoding, or a fixed encoding (such as MacRoman or ISOLatin1) is more appropriate, regardless of user's language.

So, I think such a change would be too incompatible; that is why it's better to leave this method as is and move away from it, while encouraging and introducing other methods which are more explicit about what the developer is trying to accomplish.

Ali
_______________________________________________
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.

References: 
 >Re: cString deprecated! (From: Peter Sichel <email@hidden>)

  • Prev by Date: Re: if statements vs. switch
  • Next by Date: dropping a subclassed TextAttachmentCell from within a NSTextView
  • Previous by thread: Re: cString deprecated!
  • Next by thread: Re: cString deprecated!
  • Index(es):
    • Date
    • Thread