• 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: Strange characters in Toolbar
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Strange characters in Toolbar


  • Subject: Re: Strange characters in Toolbar
  • From: Andrew Thompson <email@hidden>
  • Date: Mon, 17 Nov 2003 22:46:20 -0500

On Nov 17, 2003, at 9:05 PM, Prachi Gauriar wrote:

On Nov 17, 2003, at 9:04 AM, Clark Cox wrote:

On Nov 17, 2003, at 07:37, Ivan Myrvold wrote:

If I look under Format->File encodings, I have a check mark for the
source file to be Unicode (UTF-8). Shouldn't that be enough?

No, the @"" notation only works with ASCII. If you have a UTF-8
string, you can call [NSString stringWithUTF8String: myString];


Is it just me, or is this something that shouldn't be an issue. I mean really, why should NSConstantStrings not allow Unicode? Is it for some sort of optimization? Is there some real technical reason? Or has Apple just not updated the compiler to allow for true UTF-8?

I smell bug report, but I'd like to know why this is an issue first.


Essentially because there's no C language standard for Unicode string literals.

Last time I looked into it at any length, I found a lot of posts from "C gurus" loudly proclaiming that you should not have any user visible string shardcoded in your source code, they should all be in localization resource files. Thus, they will tell you, this is not a problem.

To a certain extent, I suppose they are correct: one should use localization files. In the real world however, there are all sorts of small conveniences with being able to deal with something richer than 7 bit ASCII in code. You'd be arguing with people who just refuse to see it as an issue. Hopefully eventually wiser heads will prevail in the C standardization effort.

AndyT (lordpixel - the cat who walks through walls)
A little bigger on the inside

(see you later space cowboy ...)
_______________________________________________
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.

  • Follow-Ups:
    • Re: Strange characters in Toolbar
      • From: "Sean McBride" <email@hidden>
References: 
 >Re: Strange characters in Toolbar (From: Ivan Myrvold <email@hidden>)
 >Re: Strange characters in Toolbar (From: Clark Cox <email@hidden>)
 >Re: Strange characters in Toolbar (From: Prachi Gauriar <email@hidden>)

  • Prev by Date: Re: Detecting option key down/up during drag [solution]
  • Next by Date: No warnings of missing prototypes during builds
  • Previous by thread: Re: Strange characters in Toolbar
  • Next by thread: Re: Strange characters in Toolbar
  • Index(es):
    • Date
    • Thread