参考:https://www.javajike.com/book/hutool/chapter13/5bf41dbd1d85ff4dcce9463bd2820e27.html
<dependency>
<groupId>com.vdurmont</groupId>
<artifactId>emoji-java</artifactId>
<version>5.0.0</version>
</dependency>
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-all</artifactId>
<version>5.3.10</version>
<scope>compile</scope>
</dependency>
//转义Emoji字符 :smile:
System.out.println(EmojiUtil.toAlias("我的中国😄"));
//将转义的别名转为Emoji字符
System.out.println(EmojiUtil.toUnicode(":smile:")); //😄
//将字符串中的Unicode Emoji字符转换为HTML表现形式
System.out.println(EmojiUtil.toHtml("😄"));//👦