Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

is it safe to use non ASCII unicode characters like ♺ in web sites?

Tags:

unicode

Taking into account web browsers, operating systems, iphone, blackberries, etc

like image 608
Victor Avatar asked Dec 23 '09 12:12

Victor


3 Answers

It depends on the character and the font(s). You will need to experiment with the characters you are interested in.

Remember that CSS allows you to apply more than one font to a block of text: if a particular character is not available in your first choice font, but is available in your second choice font, the browser will use the second choice font for that character, even when it can use the first choice font for the rest of the text.

(This does all assume you have set the character encoding correctly.)

like image 163
dave4420 Avatar answered Oct 21 '22 15:10

dave4420


While "safe" -- either by correctly setting the encoding when delivering the page or by escaping using &#xxx; -- not all users will have fonts that can render these characters. Particularly "dingbat" characters (accented Western text characters are generally supported anywhere).

So as long as you're OK with some (relatively small) percentage of your users seeing a box rather than a glyph, go ahead.

like image 42
kdgregory Avatar answered Oct 21 '22 17:10

kdgregory


Take a look at WGL4. It's list of characters that should be shown correctly on windows machines and I think this means it will be shown correctly on majority of devices.

like image 26
calavera.info Avatar answered Oct 21 '22 17:10

calavera.info