Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UTF-8 special characters don't show up

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 problem which doesn't have a glyph for that? Any ideas?
Details: Html page, i use firefox 16.0.1, Windows 7.. Page like on this post i dont see this glyph either
Thanks

like image 708
el vis Avatar asked Oct 23 '12 14:10

el vis


Video Answer


2 Answers

The character which you've there is the Unicode Character 'WHITE RIGHT POINTING BACKHAND INDEX' (U+1F449). On that page, you can find a list of known fonts supporting the character behind the link Fonts that support U+1F449.

Font
LastResort
Segoe UI Emoji
Segoe UI Symbol
Symbola

Neither of those fonts is been used here on stackoverflow.com, so you'll also see an empty box.

If this occurs on your own website, and you'd like to fix it, then you'd need to supply a supporting font along with the webapp by CSS @font-face, or in this particular case perhaps better, look for a CSS based icon library such as Font Awesome. The <i class="fa fa-hand-o-right"> comes very close with this character.

like image 62
BalusC Avatar answered Sep 19 '22 00:09

BalusC


The character U+1F449 was added to Unicode in version 6 in 2010, and it generally takes about ten years from the adoption of a character into Unicode before it is widely supported in fonts.

The few fonts that contain it now include Symbola and Segoe UI Symbol. If you have either of them installed, you’ll probably see it; otherwise not. Segoe UI Symbol is shipped with Windows 8 and apparently with (at least some variants of) Windows 7, though the Windows 7 version may be limited – an update is available from Microsoft. Symbola is a free font, so you could in principle use it as a downloadable font (via @font-face), but its file size is rather large.

Web browsers are supposed to use fallback fonts, if the fonts specified for an element do not contain a glyph for some character in the content. Firefox generally implements this will, IE does not, especially in older versions, so if you use the character on a web page, it is best to wrap in an element of its own (usually span is used for the purpose) and set the following on it in CSS:

font-family: Segoe UI Symbol, Symbola;

But this will as such (without @font-face) work only for people using computers that contain one of the fonts.

like image 40
Jukka K. Korpela Avatar answered Sep 20 '22 00:09

Jukka K. Korpela