HTML entities and charset in IE

前端 未结 7 1793
春和景丽
春和景丽 2020-12-30 12:36

I am displaying html entity (a check mark: ✓) in an html document that uses iso-8859-1 for the character set.

In Firefox, it display

相关标签:
7条回答
  • 2020-12-30 13:05

    You probably want to use font-family: Arial Unicode MS, Arial, Sans-Serif. IE does not display properly unicode chars from Arial...

    0 讨论(0)
  • 2020-12-30 13:05

    I specified the font attributes in a style tag and the checkmark is displayed properly in IE7 which is what the majority of my clients are using. Example:

    ✓ Some text

    0 讨论(0)
  • 2020-12-30 13:11

    Per http://www.w3.org, the check mark isn't part of 8859-1: http://www.w3.org/TR/html401/sgml/entities.html

    It's e29c93 in UTF-8.

    0 讨论(0)
  • 2020-12-30 13:14

    You can try the square root symbol, "√", which doesn't look perfect but ok. √

    0 讨论(0)
  • 2020-12-30 13:14

    If it's IE, you can reasonably assume it's on Windows, and hence, there's a WingDings font available... The letter ü in MS WingDings is a simple checkmark (similar to ✓), and þ is a checkmark in a box (similar to ☑).

    0 讨论(0)
  • 2020-12-30 13:17

    Perhaps the typeface used by Internet Explorer doesn’t have a glyph to display this character.

    0 讨论(0)
提交回复
热议问题