Effect display diagram:
Pass parameters
Conversion storage:
Parse return page display:
Start
1. Add dependencies to pom.xml:
<dependency> <groupId>com.vdurmont</groupId> <artifactId>emoji-java</artifactId> <version>4.0.0</version> </dependency>
2. Before receiving parameters and storing them, Convert:
EmojiParser.parseToAliases(xxxxemoji表情参xxx)##Test example:
System.out.println(EmojiParser.parseToAliases("uD83DuDE0EuD83DuDE02uD83EuDD37uD83DuDCAAuD83DuDC7D"));# PS: Some people may have questions after reading this. If the parameter value is not to save emoji expressions, can it still be successful? The best way to eliminate doubts is to take action:
EmojiParser.parseToUnicode(xxxx转化后的emoji值xxxx)##System.out.println(EmojiParser.parseToUnicode(":sunglasses::joy::shrug::muscle: :alien:"));
The above is the detailed content of How to implement Springboot's support for Emoji expressions. For more information, please follow other related articles on the PHP Chinese website!