<!-- 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转义后再手机端显示的效果: