特殊字符显示为表情符号
Special characters appear as emoji
我正在使用 Galaxy S8 开发 Android 应用程序。
当我写一些特殊字符时,它们看起来像是银河表情符号。诸如此类:↔♥◀▶
如何防止它们变成表情符号?
通常 select 在表情符号和字符版本之间,您必须使用 variation selector
Unicode defines variation sequences for many of its emoji to indicate their desired presentation.
Emoji characters can have two main kinds of presentation:
- an emoji presentation, with colorful and perhaps whimsical shapes, even animated
- a text presentation, such as black & white
— Unicode Technical Report #51: Unicode Emoji
通过使用 U+FE0E VARIATION SELECTOR-15 (VS15) 文本或 U+FE0F VARIATION SELECTOR-16 (VS16) 表情符号样式来指定所需的演示文稿。
https://en.wikipedia.org/wiki/Emoji#Emoji_versus_text_presentation
因此,如果您不希望它们显示为表情符号,只需在末尾附加一个 VS15
我正在使用 Galaxy S8 开发 Android 应用程序。
当我写一些特殊字符时,它们看起来像是银河表情符号。诸如此类:↔♥◀▶
如何防止它们变成表情符号?
通常 select 在表情符号和字符版本之间,您必须使用 variation selector
Unicode defines variation sequences for many of its emoji to indicate their desired presentation.
Emoji characters can have two main kinds of presentation:
- an emoji presentation, with colorful and perhaps whimsical shapes, even animated
- a text presentation, such as black & white
— Unicode Technical Report #51: Unicode Emoji通过使用 U+FE0E VARIATION SELECTOR-15 (VS15) 文本或 U+FE0F VARIATION SELECTOR-16 (VS16) 表情符号样式来指定所需的演示文稿。
https://en.wikipedia.org/wiki/Emoji#Emoji_versus_text_presentation
因此,如果您不希望它们显示为表情符号,只需在末尾附加一个 VS15