Skip navigation.
 
mlRe: non-ASCII character in CFString literal
FROM : Peter Bierman
DATE : Thu Dec 02 21:15:10 2004

At 11:22 AM +0100 12/2/04, Daniel Eggert wrote:
>When I build I get a
>    warning: non-ASCII character in CFString literal
>every time i have a NSString constant with non-ASCII characters. (e.g. @"æ").
>
>I can seem to figure out what build setting is
>causing this. Anyone have a clue.



You can use -Wno-nonportable-cfstrings to disable the warning.

But as others said, if this is one of a
collection of strings that are selected
dynamically for different localizations, you
should instead load the strings from .strings
files using NSLocalizedString()

-pmb

Related mailsAuthorDate
mlnon-ASCII character in CFString literal Daniel Eggert Dec 2, 11:22
mlRe: non-ASCII character in CFString literal David Dunham Dec 2, 16:19
mlRe: non-ASCII character in CFString literal j o a r Dec 2, 16:28
mlRe: non-ASCII character in CFString literal Peter Bierman Dec 2, 21:15
mlRe: non-ASCII character in CFString literal Ali Ozer Dec 2, 22:04
mlRe: non-ASCII character in CFString literal Clark Cox Dec 3, 22:54
mlRe: non-ASCII character in CFString literal Daniel Eggert Dec 8, 13:51