Whatsapp聊天中的表情符号 [英] Emoji inside Whatsapp chat

查看:452
本文介绍了Whatsapp聊天中的表情符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Whatsapp聊天txt文件,其中的表情符号已被此类文本替换------>"î.’î.’î."

I am having a Whatsapp chat txt file inside of which emojis have been replaced by such text------> "���"

我想将该文本转换为特定的表情符号.我该怎么做并在Java应用程序中使用它?

I want to convert that text to specifics emojis. How can I do that and use it inside a java application?

推荐答案

正如@Abhishek指出的那样,您需要使用其他类型的编码.Whatsapp使用UTF-8进行备份,将表情符号转换为字符串表示形式.如果要查看真正的表情符号,则必须改用Unicode.Unicode包含将表情符号指定为字符"的部分.它们是常规字符,您只需要一种可以显示它们的字体即可.另请参见 Unicode表情符号常见问题解答.

As @Abhishek pointed out, you need to use a different type of encoding. Whatsapp does backup with UTF-8 converting the emoticons into string representations. If you want to see the real emoji, you will have to use Unicode instead. Unicode contains sections which specify emoji as "characters". They're regular characters, you only need a font which can display them. Also see the Unicode Emoji FAQ.

在文本文件中,字符基本上被编码为字节形式的数字.要在计算机屏幕上直观地显示这些字符,您需要一种字体,其中包含用于显示此字符的可视字形.由于该过程始终是数字标识符→字体→可见字形,因此很明显字符"可以是任何可视的,包括表情符号或任何其他图像.

In a text file, characters are basically encoded as numbers in the form of bytes. To display those visually on a computer screen you need a font which contains the visual glyph to render this character. Since the process is always numeric identifier → font → visible glyph, it should be pretty obvious that a "character" can be anything visual, including emoji or any other image.

这篇关于Whatsapp聊天中的表情符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆