I have a problem I couldn\'t find a solution to. I have a string variable holding the unicode \"1f44d\" and I want to convert it to a unicode character
This can be done in two steps:
charAsString
Int
Second step can be done e.g. like this
var code = 0x1f44d var scalar = UnicodeScalar(code) var string = "\(scalar)"
As for first the step, see here how to convert String in hex representation to Int
String