Why not:
[NSString stringWithString:NSLocalizedStringFromTable(@"My Unicode String I live and die for",@"My Unicode Table",@"Yes this solution sucks a bit")];
and a My Unicode Table.strings file not localized in fact.
Posted by: Stephane at 04.08.04 11:53Nat's definitely right, this really is something which belongs into gcc - at least in the year 2004. I've stumbled across this earlier and chose the way Stephane proposes also. IMO there's no other portable way of achieving this.
Posted by: znek at 04.08.04 12:41I don't like that solution that much because I have now that .strings file just for this problem. My code is in a framework, which I just feel the application will have a problem locating the .strings file at the opportune moment.
What about: [NSString stringWithFormat:@"String with unicode %C", (unichar) 0x2714] ?
Posted by: Stefan Kreutter at 20.01.05 14:21