Character Sets

Discussion in 'HTML' started by Diane, Sep 6, 2008.

  1. Diane

    Diane Guest

    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
     
    Diane, Sep 6, 2008
    #1
    1. Advertising

  2. Diane

    Lars Eighner Guest

    In our last episode, <GLDwk.1005$yS5.911@edtnps83>, the lovely and talented
    Diane broadcast on alt.html:

    > 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?


    Does the glyph exist in any of your installed fonts? If not, no browser can
    display it.

    --
    Lars Eighner <http://larseighner.com/>
    War hath no fury like a noncombatant.
    - Charles Edward Montague
     
    Lars Eighner, Sep 6, 2008
    #2
    1. Advertising

  3. Ben C wrote:

    > On 2008-09-06, Diane <> wrote:
    >> 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?

    >
    > 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
     
    Jukka K. Korpela, Sep 7, 2008
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. MattB
    Replies:
    0
    Views:
    340
    MattB
    Jun 14, 2005
  2. BLG
    Replies:
    13
    Views:
    1,028
    John C. Bollinger
    Oct 21, 2003
  3. Robert M. Gary

    character sets

    Robert M. Gary, Mar 15, 2005, in forum: Java
    Replies:
    4
    Views:
    412
    Mark Thornton
    Mar 15, 2005
  4. JSP Character Sets

    , Jul 6, 2005, in forum: Java
    Replies:
    1
    Views:
    441
    Ray in HK
    Jul 7, 2005
  5. Replies:
    4
    Views:
    411
Loading...

Share This Page