Re: 8-bit chars in @""
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.