时间:2021-07-01 10:21:17 帮助过:7人阅读
<!-- maven包 -->
<!-- 表情转换 --> <dependency> <groupId>com.github.binarywang</groupId> <artifactId>java-emoji-converter</artifactId> <version>0.1.1</version> </dependency>
// 引用方式 EmojiConverter emojiConverter = EmojiConverter.getInstance(); String emojiStr = emojiConverter.toUnicode("包含emoji表情的字符串");
toAlias :
convert emoji string with unicode/softbank to strings with aliases
toHtml:
convert emoji string with unicode/softbank to strings with html code
toUnicode:
convert string with softbank/alias emoji to strings with unicode
toAlias和 toHtml转义后,把内容显示在手机端的效果:
toUnicode转义后再手机端显示的效果:
java后台,接收到emoji表情内容后,存储在mysql存储不了的问题,emoji转义
标签:mic -- github icon sof pen tin class html转义