• 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: Non-ASCII Compiler Warning
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Non-ASCII Compiler Warning


  • Subject: Re: Non-ASCII Compiler Warning
  • From: Half Activist <email@hidden>
  • Date: Tue, 20 Mar 2007 08:37:33 +0100

Hi Nelson,

You should try \uxxxx where xxxx is the hexadecimal value for the character you want.
In the Character Palette, if you choose 'View: Code Tables' in the popup menu in the top left of the palette, then you'll be able to grab the unicode index of your character easily.


The following page deals with it:
http://www.cocoadev.com/index.pl?UniCode



On Mar 20, 2007, at 7:58 AM, Nelson Santos wrote:

Hi all,

In my code, I have a line like this:

NSString *symbol = @"x";

...where x is a character that I inserted directly into the source code using the OS X Character Palette. The program works fine, but every time I compile the project, I get the following build warning:

"warning: non-ASCII character in CFString literal"

I appreciate the compiler telling me about this, but I don't want it to complain about this line anymore. Is there something I can do? Does anyone have an idea of how I could (or should) do this differently?

Thanks.
Nelson

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
40gmail.com


This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Non-ASCII Compiler Warning (From: Nelson Santos <email@hidden>)

  • Prev by Date: Re: Generating SQL Statement from NSPredicate?
  • Next by Date: Re: Changing order of views dynamically
  • Previous by thread: Non-ASCII Compiler Warning
  • Next by thread: Re: Non-ASCII Compiler Warning
  • Index(es):
    • Date
    • Thread