We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
第94天 说说你对emoji表情的理解,前端如何处理emoji表情?它的运用场景有哪些?
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
emoji表情实际上就是Unicode字符,通过各个系统的底层将其转化为对应的表情图像;因此,每个系统的emoji表情实现都可以各不相同。
emoji
Unicode
至于应用场景,虽然是字符,但由于图像化,所以表达的意思更加丰富,多用于聊天或网络社交,言简意赅。
说一个使用emoji遇到的问题吧,如果前端使用emoji保存入库,服务器使用mysql的情况下需要设置对应的字符集为utf8mb4支持该表情 。
mysql
utf8mb4
从MySQL 5.5开始,可以支持4个字节UTF编码 utf8mb4 ,一个字符能够支持更多的字符集,也能够支持更多表情符号。 utf8mb4兼容utf8,且比utf8能表示更多的字符,是utf8字符集的超集。所以现在一些新的业务,比如IOS中的emoji表情,会将MySQL数据库的字符集设置为utf8mb4。
理解:它是一种跨语言的用于表达情感的符号;它可以用标准的 UTF-8 编码表示。 要展示 emoji,前端应该使用 UTF-8 编码;同时后端也应该使用它存储数据。 运用场景:这个问题没啥意义,几个字符还要特殊的应用场景?
No branches or pull requests
第94天 说说你对emoji表情的理解,前端如何处理emoji表情?它的运用场景有哪些?
The text was updated successfully, but these errors were encountered: