Character Sets

D

Diane

I am trying to get stars in my website using character sets. I put in


In return: IE gives me squares and Firefox shows question marks.

Can anyone help?

Thank you in advance
 
J

Jukka K. Korpela

Ben said:
The problem is that they aren't using a font with silly characters
like stars in it.

The correct technical explanation is that the OP's system has no font
containing the character denoted by ★, i.e. U+2605 BLACK STAR. Less
certainly, but rather probably, the reason to this is that the system hasn't
got Microsoft Office installed, or has an old version of it. This hypothesis
is based on the observation that among the fonts that contain the character,
see
http://www.fileformat.info/info/unicode/char/2605/fontsupport.htm
for a fairly good list, Arial Unicode MS is the only one that we can
reasonably expect an ordinary user to have, and it is shipped with Microsoft
Office.

There's nothing silly about U+2605 BLACK STAR. It is a reputable
miscellaneous symbol with with well-defined properties, and it's been in
Unicode since the early days.

Some uses of that character might be silly, but we have no information about
the intended usage and meaning.

And using the character on a web page isn't safe, since a large number of
users won't see it. But you might use it e.g. as a special symbol on page
about mathematics, containing all kinds of unusual characters anyway.
You can't really change that-- you can suggest a font with font-family
but the browser doesn't have to use it if for example it can't find
it.

Well, obviously it won't use something that does not exist for it.

Using <font face="Arial Unicode MS">★</font> on something similar
(<span class="math">★</span> with .math { font-family: Arial Unicode
MS; }) will increase the odds of having the character displayed. Earlier
versions of IE may need such help.

There's yet another problem. In size 13pt and smaller, the black star looks
broken in Arial Unicode MS. The font design does not seem to work in such
sizes.
Better to use an inline image, like <img src="star.png" alt="star">.

Let me guess... the most common use of star-like symbols on web pages is in
ratings, as in evaluations with starts from 1 to 5, or something like that.
The black star, possibly colored differently (e.g. red), is suitable for the
purpose in principle and better than the ASCII asterisk, "*". But it does
not seem to be a practical choice, and images are indeed a better approach.
In that case, I would suggest creating images for 1 star, 2 stars etc. (it's
just simple copying in an image processing program), and using
<img src="star1.png" alt="one star">
<img src="star2.png" alt="two stars">
Think about how the alt attributes will be used by speech browsers, and
you'll see my point - surely you would prefer hearing "five stars" rather
than "star star star star star".

Yucca
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top