标签:package util port result enc version ring imp author
<dependency> <groupId>com.vdurmont</groupId> <artifactId>emoji-java</artifactId> <version>5.1.1</version> </dependency>
package com.jeeplus.modules.ff.front.utils; import com.vdurmont.emoji.EmojiParser; /** * 表情处理类 * @author Administrator * */ public final class EmojiUtil { /** * 将emojiStr转为 带有表情的字符 * @param emojiStr * @return */ public static String emojiConverterUnicodeStr(String emojiStr){ String result = EmojiParser.parseToUnicode(emojiStr); return result; } /** * 带有表情的字符串转换为编码 * @param str * @return */ public static String emojiConverterToAlias(String str){ String result=EmojiParser.parseToAliases(str); return result; } }
标签:package util port result enc version ring imp author
原文地址:https://www.cnblogs.com/smiledGo/p/13395027.html