An example of placing a registered character using NSString in Objective-C

Has anyone managed to add a registered character mark to their text using NSString in a C object? I tried using the Unicode equivalent: \ u00AE, however this does not give me the registered character sign, as it should be! Can anyone suggest any kind of understanding?

+3
source share
4 answers

NSLog(@"Hello\u00AE");prints the expected string with the registered character on my console. Perhaps this is really the font that you are trying to use when displaying your string.

+5
source

On an American keyboard and possibly others, you can simply enter it with Option- R: ® ®®®®®®®®®®®®

, " " "" .

+2

( unicode). .

0

NSLocalizedString , - NSLocalizedString (@ " ", @""), InfoPlist.strings " " = "registeredsymbol"; InfoPlist.strings - utf8 utf16, , , UnicodeChecker, unichar.

+ [NSString stringWithCharacters: (const unichar *) : (NSUInteger) length] unchar.

0

All Articles