IOS是否支持所有Unicode表情符号? [英] Does IOS support all Unicode emojies?
问题描述
Hello All,
我有关于 Unicode字符
的问题。我可以在 UITextView
中附加Apple Art Work Unicode字符
。
像这样: -
self.textView.text = @\\\ 0000A;
没关系。
但是现在我有很多 Unicodes字符
这些不在Apple艺术作品中。
其中一个是 U + 1F3C7
现在我想在 UITextView
中显示它。
self.textView.text = @\ u1f3c7;
然后它显示特殊字符而不是表情符号。
这是这个Unicode的表情符号图标但它显示我Ἴ7
。
Apple不支持所有Unicode字符?
如何在我的应用程序中添加自己的表情符号?
如果我的问题不清楚,请告诉我。
Objective-C内部是否使用UTF-16,如Java和C#?
如果是这样,则U + 1F3C7不会是\\\Ἴ7,而是代理对,\ uD83C \ uDFC7。
否则,必须有一些方法来表示更高的字符,因为\ u1f3c7
与\ u1f3c+7相同
,Ἴ7
(psili和oxia的资本iota,然后是7)。
<编辑:在OP和我之间进行一些讨论之后,我们发现在Objective C中执行此操作的方法是我所知道的C ++方式:
\ U0001F3C7
( \\ \\ uXXXX
带小 u
和4个十六进制数字s适用于4个十六进制数字, \UXXXXXXXX
,大写 U
,8个十六进制数字适用于一切,但输入的时间更长。
现在我们的朋友只需要处理字体支持的问题,这实际上是另一个问题。他想要。
Hello All,
I have a problem regarding Unicode characters
. I'm able to append Apple Art Work Unicode Characters
in UITextView
.
Like this : -
self.textView.text = @"\ue00A";
It is Okay.
But now i have many Unicodes Characters
which're not in Apple art work.
One of them is U+1F3C7
Now I'm trying to show it in UITextView
.
self.textView.text = @"\u1f3c7";
Then it is showing me an Special Character instead of Emoji.
This is the Emoji Icon of this Unicode But it is showing me Ἴ7
.
Apple doesn't support all Unicode Characters ?
How can I add my own emojies in my application ?
Let me know if my question is not clear for you.
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.
这篇关于IOS是否支持所有Unicode表情符号?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!