【问题标题】:Android/Java - How to detect whether an emoji/emoticon is present in the string? [duplicate]Android/Java - 如何检测字符串中是否存在表情符号/表情符号? [复制]
【发布时间】:2016-09-19 19:43:04
【问题描述】:

我正在构建一个聊天应用程序,我将在其中使用表情符号,所以问题是当我输入和发送文本时,例如。 - “哈哈哈这太好笑了???” 在 MySQL 中,它被保存为“哈哈,这太有趣了??”

谁能告诉我如何检测保存到服务器的字符串是否包含表情符号,如果包含,则相应地将表情符号部分转换为特殊的 unicode 格式?

非常感谢!

【问题讨论】:

标签: android mysql unicode emoji emoticons


【解决方案1】:

首先使用这样的库来解码文本。 我自己没有尝试过,但据我所知,这是可能的。

https://android-arsenal.com/details/1/1806

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-04-06
    • 1970-01-01
    • 1970-01-01
    • 2021-06-24
    • 1970-01-01
    • 2015-08-25
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多