HTML entities and charset in IE

眉间皱痕 提交于 2019-11-30 07:45:09

Square means that the font used does not have the glyph for that character.

Unfortunately, there are not many fonts containing that character, and none of them is present by default on all Windows machines (and even less on non-Windows ones)

The most likely fonts to be present (that contain that glyph) are Arial Unicode MS (comes with Officie), and MS Gothic + family (which is a Japanese font).

See here for a tool that can help you determine that font contains what glyphs: http://www.mihai-nita.net/article.php?artID=charmapex

But if you want a solution that works reliably, an image is your safest bet.

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

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

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

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 ☑).

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

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!