防止表情符号字符显示 [英] Prevent Emoji Characters from Showing

查看:47
本文介绍了防止表情符号字符显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的应用程序中使用了一些特殊的 uniode 字符,但自 iOS 5 以来,这些已被表情符号字符替换.如何强制显示 unicode 字符而不是表情符号字符?谢谢

I use a few special uniode chars in my app, but since iOS 5 these have been replaced with emoji characters. How can I force the unicode characters to be displayed and not the emoji characters? Thanks

推荐答案

这是一个老问题,但最近一直困扰着我,直到我找到了答案.

This is an old question but it plagued me a lot recently until I found the answer.

只需在我们要防止成为表情符号的字符后添加U0000FE0E"即可.

Just add 'U0000FE0E' after the character that we want to prevent from becoming an emoji.

例如:

@"▶"  // should be written as:
@"▶U0000FE0E"

使用转义的 unicode 也可以:

Using the escaped unicode works as well:

@"u25B6"  // should be written as:
@"u25B6U0000FE0E"

我们需要使用 Unicode 变体来防止某些字符变成表情符号.

We need to use Unicode variants to prevent certain characters from becoming emoji.

这是解决我问题的文章.

这篇关于防止表情符号字符显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆