HTML-Renderer icon indicating copy to clipboard operation
HTML-Renderer copied to clipboard

Support for emojis

Open modernist opened this issue 6 years ago • 1 comments

Hi, I tried to render a piece of HTML containing emojis, but they are not displayed - each one is replaced by a couple of empty square blocks.

Perhaps you can provide me with the necessary info so I can help fix this?

modernist avatar Nov 21 '19 12:11 modernist

I got it to work (using the Avalonia-HtmlRenderer version) using the HTML entities for the emoji's Unicode codepoint.

So for example to show 👀 the codepoint is U+1F440. Then in the HTML you substitute the U+ with &#x so it becomes &#x1F440.

Codepoints are here: https://emojipedia.org/

tkefauver avatar Aug 25 '23 14:08 tkefauver