I want to display the following symbol : "\ud83c\uddfa\ud83c\uddf8"
This, in HTML, is supposed to display the flag of the USA. The first half displays "U", and the 2nd half displays "S". Put together, it displays a little symbol of the flag (by a mechanism I'm not sure about). Well, it does in Firefox at least. It doesn't in Chrome. In Chrome, it just shows "U S".
I wish Chrome could work as well as Firefox :D But stats tell us a large proportion of Internet users use Chrome.
Any idea what I am missing so Chrome displays the flag symbol ? I initially had this in the index.html head :
<meta charset=utf-8">
Another SO comment mentionned it had to be replaced with the following, but that doesn't fix the issue.
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
EDIT : this link indicates there is no fix. The way would be to use images (.png/.webp/.svg) instead. This is a bit dumb. I feel like the unicode solution would be the lightest.
{"\ud83c\uddfa\ud83c\uddf8"}
. Or the following HTML equivalent :πΊπΈ
. In both cases, Firefox displays the flag, while Chrome displays letters U and S β John Doe Dec 08 '21 at 11:11