简体   繁体   English

如何在java中处理emoji并保存到数据库中,然后在UI上显示

[英]How to handle emoji in java and save into database, Then display on UI

I am sending a request on third party api.我正在向第三方 api 发送请求。 and a getting response like ⌚ Test which is actually looks like ⌚ Test on third party UI.以及像⌚ Test这样的响应,实际上看起来像 ⌚ Test在第三方 UI 上。 My question is.我的问题是。 In which format emoji's i should save into database , and how i can display the same emoji on UI as well.我应该以哪种格式的表情符号保存到数据库中,以及如何在 UI 上显示相同的表情符号。

please help请帮忙

For this you will need to find the correct encoding to store your string in your database.为此,您需要找到正确的编码来将您的字符串存储在您的数据库中。 Since I don't know which DB you're using, you can go trough this tutorial to understand how to define your column in DB to store the correct format.由于我不知道您使用的是哪个 DB,您可以通过本教程了解如何在 DB 中定义您的列以存储正确的格式。 EXAMPLE 例子

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM