I'd like to use the Unicode version of '<' in an NSString but the compiler produces the error:
"Character '<' cannot be specified by a universal character name"
NSString *text = @"Some Text: \u003C";
"some string <"
I don't believe that the compiler error was addressed.
"Character '<' cannot be specified by a universal character name" "Universal character name refers to a control character"
it appears that you cannot use the
\U000000xxliteral syntax for many 2 bytes ASCII characters, with the following exceptions:
A simple workaround is to use
[NSString stringWithFormat:@"%C", 0x000000xx]
Example with the '<' character:
NSString *text = [NSString stringWithFormat:@"Hello %C", 0x003C]";
See xcode UTF-8 literals for more options.