Re: Non-ASCII Compiler Warning
Re: Non-ASCII Compiler Warning
- Subject: Re: Non-ASCII Compiler Warning
- From: "Sean McBride" <email@hidden>
- Date: Tue, 20 Mar 2007 10:30:24 -0400
- Organization: Rogue Research
On 2007-03-20 02:58, Nelson Santos said:
>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?
You should not just ignore that warning. This has been discussed many
many many times, and you can find the discussions in the archives.
Basically, @"..." and CFSTR() do not support non-ASCII strings. Also,
please file a bug-- this limitation is quite tiresome in 2007.
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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