Hampotato Hampotato - 3 months ago 11x
iOS Question

"ԅ" causing iOS app crash

I find that if I set UILabel's text to "ԅ", it crashes without further information. It didn't hit the "All Exception" breakpoint.

self.label.text = @"ԅԅ";

How do I get rid of this crash? Thank you in advance!

By the way, I found this problem due to an emoticon "ԅ(¯﹃¯ԅ)", which kind of describes what I'm feeling right now.


Do not pass directly a Unicode character to NSString initialisation, instead use the character's Unicode code-point representation. In case of this character, it'd be @"\u504".