• 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: 8-bit chars in @""
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 8-bit chars in @""


  • Subject: Re: 8-bit chars in @""
  • From: Shawn Erickson <email@hidden>
  • Date: Sun, 24 Mar 2002 10:25:47 -0800

On Sunday, March 24, 2002, at 09:54 AM, Matt Neuburg wrote:
(I still don't get why there isn't some easy way to represent Unicode inside a
literal NSString.) m

It comes down to your compiled code making assumption about the encoding and character set being used and how that may not match with the encoding and character set display routines are attempting to use when you app is run, etc.

By putting things out into a .string file in a standardized encoding (UTF-8) the correct strings can be pulled in when needed without any assumptions being made.

the following docs may help with this...

http://developer.apple.com/techpubs/macosx/Cocoa/TasksAndConcepts/ProgrammingTopics/
Strings/Tasks/CreatingStrings.html

http://developer.apple.com/techpubs/macosx/Cocoa/TasksAndConcepts/ProgrammingTopics/
Internationalization/index.html

http://www.unicode.org/

http://www.unicode.org/charts/

-Shawn

p.s. Not sure if @"somesting" supports using \Uxxxx or not, I assume not... where xxxx is the unicode character "number".
_______________________________________________
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: 8-bit chars in @"" (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Re: [ANN] My experiences with Apple
  • Next by Date: Re: Preventing the writing of the NSUserDefaults
  • Previous by thread: Re: 8-bit chars in @""
  • Next by thread: Re: 8-bit chars in @""
  • Index(es):
    • Date
    • Thread