UTF-8 special characters don't show up

前端 未结 3 1725
遥遥无期
遥遥无期 2021-01-12 09:05

I\'m trying to figure out why characters like this : 👉 show up like empty boxes. They are unicode characters though and charset is utf-8.

Can it be a font

3条回答
  •  情深已故
    2021-01-12 09:38

    Missing font characters will usually be substituted with other fonts, and UTF-8 should be able to display all unicode characters. I suspect that the encoding of your file (how it is saved by your editor), does not match the declaration in the meta tags of your HTML page.

    You can check your page with this W3-checker, it can possibly give you hints about the problem of your page.

    EDIT:

    You are right, it's not an encoding problem, the number of the character has such a high number, that the "normal" fonts do not support it. Maybe you can use one of those ☛ ☞, otherwise you would have to use a web font, and fonts with full unicode support can be quite large.

提交回复
热议问题