Answer the question
In order to leave comments, you need to log in
How to display emoji correctly?
I'm making a VK group. I want it to be indexed in search engines. Faced such a problem as inserting emoji into the description of the VK group. I put in emoji. But when I open the page code, the emoji is not here. And most likely it will not be in the Google snippet.
How can I solve this problem so that the emoji are displayed correctly?
Answer the question
In order to leave comments, you need to log in
How is it "does not contain"? What do you think the character entity is doing there? This is your smiley. To insert it not in this way, but as a Unicode character, the entire page code must be in Unicode, more precisely, for example, in UTF-8 encoding. It is not possible to insert and display a Unicode character on a page on Windows-1251 without converting it to a character entity.
Moskus answered you correctly, but I'll chew a little more. VK has its own emoji, no matter how you send them - through & #...; or \u... (this will work in the API), or even copying a symbol from somewhere - VKontakte will always display them the same way - in the format & #...; and in the style that is used on the site. In the source code there is a file containing all their emoji, you can read it in more detail.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question