Does IOS support all Unicode emojies?

前端 未结 1 1819
猫巷女王i
猫巷女王i 2020-12-18 09:18

Hello All,

I have a problem regarding Unicode characters. I\'m able to append Apple Art Work Unicode Characters in U

相关标签:
1条回答
  • 2020-12-18 09:54

    Doesn't Objective-C use UTF-16 internally, like Java and C#?

    If so, then U+1F3C7 wouldn't be "\u1f3c7", but the surrogate-pair, "\uD83C\uDFC7".

    Otherwise, there has to be some way to indicate a higher character, because "\u1f3c7" is the same as "\u1f3c" + "7", which is Ἴ7 (capital iota with psili and oxia, then 7).

    Edit: After some discussion between the OP and myself, we figured out that the way to do this in Objective C is one I know as the C++ way:

    "\U0001F3C7"
    

    (\uXXXX with a small u and 4 hex digits works if it fits in thos 4 hex digits, \UXXXXXXXX with a capital U and 8 hex digits works for everything, but is longer to type).

    Now our friend just needs to deal with the matter of font support, which alas is another problem in getting this to actually look as he wants.

    0 讨论(0)
提交回复
热议问题