FROM : Nick Zitzmann
DATE : Tue Jul 11 19:53:44 2006
On Jul 11, 2006, at 10:29 AM, Ivan C Myrvold wrote:
> I get the following warning when I tries to use norwegian
> characters. How can I avoid the warning?
>
> [[row validateInput] setObject:@"Du har skrevet inn feil navn i
> Utføres av!" forKey:@"utforesav"];
>
>
> warning: non-ASCII character in CFString literal
Don't use non-ASCII characters in CFString literals; they will not
work. If you need to use non-ASCII characters in strings, either use
the NSLocalizedString() macros, or write the string in hex or decimal
in a unichar array and use +[NSString stringWithCharacters:length:]
to turn the array into an NSString.
Nick Zitzmann
<http://www.chronosnet.com/>
DATE : Tue Jul 11 19:53:44 2006
On Jul 11, 2006, at 10:29 AM, Ivan C Myrvold wrote:
> I get the following warning when I tries to use norwegian
> characters. How can I avoid the warning?
>
> [[row validateInput] setObject:@"Du har skrevet inn feil navn i
> Utføres av!" forKey:@"utforesav"];
>
>
> warning: non-ASCII character in CFString literal
Don't use non-ASCII characters in CFString literals; they will not
work. If you need to use non-ASCII characters in strings, either use
the NSLocalizedString() macros, or write the string in hex or decimal
in a unichar array and use +[NSString stringWithCharacters:length:]
to turn the array into an NSString.
Nick Zitzmann
<http://www.chronosnet.com/>
| Related mails | Author | Date |
|---|---|---|
| Ivan C Myrvold | Jul 11, 18:29 | |
| Nick Zitzmann | Jul 11, 19:53 |






Cocoa mail archive

