表情符号值范围 [英] Emoji value range

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

问题描述

我试图从字符串中取出所有表情符号字符(如消毒剂).但是我找不到一套完整的表情符号值.

I was trying to take out all emoji chars out of a string (like a sanitizer). But I cannot find a complete set of emoji values.

表情符号字符的 UTF16 值的完整集合是什么?

What is the complete set of emoji chars' UTF16 values?

推荐答案

Unicode 标准的 Unicode® 技术报告#51 包括表情符号列表(emoji-data.txt):

The Unicode standard's Unicode® Technical Report #51 includes a list of emoji (emoji-data.txt):

...
21A9 ;  text ;  L1 ;    none ;  j   # V1.1 (↩) LEFTWARDS ARROW WITH HOOK
21AA ;  text ;  L1 ;    none ;  j   # V1.1 (↪) RIGHTWARDS ARROW WITH HOOK
231A ;  emoji ; L1 ;    none ;  j   # V1.1 (⌚) WATCH
231B ;  emoji ; L1 ;    none ;  j   # V1.1 (⌛) HOURGLASS
...

我相信您会想要删除本文档中列出的每个字符,这些字符具有 emojiDefault_Emoji_Style.

I believe you would want to remove each character listed in this document which had a Default_Emoji_Style of emoji.

除了引用这样的定义列表外,没有其他方法可以识别 Unicode 中的表情符号字符.正如对常见问题的引用所说,它们分布在不同的块中.

There is no way, other than reference to a definition list like this, to identify the emoji characters in Unicode. As the reference to the FAQ says, they are spread throughout different blocks.

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

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