Emoji not showing in Swift
问题 I am trying to show emojis coming from JSON response. It work fine when we don't have 0️⃣1️⃣3️⃣5️⃣ in below string and does not work with below string. var titleLabelString = \ud83d\ude0a\ud83d\ude18\u2626\ufe0f 0️⃣1️⃣3️⃣5️⃣ Function I am using: extension String { var decodeEmoji: String? { let data = self.data(using: String.Encoding.utf8,allowLossyConversion: false); let decodedStr = NSString(data: data!, encoding: String.Encoding.nonLossyASCII.rawValue) if decodedStr != nil{ return