Forum Moderators: open
Is − widely supported? On different browsers, versions, and platforms?
I'm using the iso-8859-1 charset, if that is significant. Most of my visitors are from the English-speaking world, including India.
After having had a bit of a play...
It displays very similiar to the – character. In most browsers it displays the same, except in Opera (8) where − has slight padding left and right (as a minus sign should have, come to think).
− is supported by (Windows) on:
IE5, IE6, Firefox 1.0, 1.5, Opera 8, Mozilla 1.6
It's not supported by Netscape 4 (and neither is the numeric equivalent of −), but then what is?! – is not supported either.
As long as it works ok on the Mac then I'd say yes - use it. (− may come from the Symbol font)
For example, I know that some other entities, such as ∴, display fine on some Windows/IE browsers in the UK, but not on others. I don't know what accounts for the difference.
Also, I have a lot of visitors from India, so I'd like to know if there is anything about the typical setup in India that could influence whether display problems with − would be rare, or quite common.
Any general pointers on this topic would be appreciated!
The 'minus' character talked about above is in both the standard Windows Arial and Times New Roman fonts. However, the "there4" (U+2234 three dots) character isn't - I've found it in the Symbol font - which may explain why some users may have a problem. This is illustrated by Netscape 4 (just acting as an example) which can only display chars from the current font. It displays the minus char (−) ok, but not 'therefore' (∴).
Arial and Times New Roman seem to have a gap in the unicode table between U+222B and U+2248.
Also, for maximum compatibility with old old browsers you should use decimal character entities (like −) rather than the hex equivalent (−)
Thanks, Robin_reala, but I don't want to open a whole new can of worms by moving to UTF8! At least, not yet.
ASIDE: I don't know if it is possible that on some (strange) systems the minus sign is not character #8722, but something else entirely. In which case − is more likely to map to the correct character. (But that may be just very hypothetical!)
Yes, I have encountered a few problems before when switching from iso-8859-1 to utf-8. One was the copyright symbol, which I had typed directly into the html, instead of using © (since it was in the copyright meta tag) - switching to utf-8 caused it to display as a '?'.