How to show Unicode characters in IE using HTML

Mikle picture Mikle · Mar 21, 2009 · Viewed 18.5k times · Source

I'm trying to show the copyright and infinity signs at the bottom of my page using this code:

&#x00A9 Copyright Mikle 2009 - &#x221E

This works perfectly in Firefox 2, 3 and Chrome. IE7 though, is showing me the actual codes (like you see above) instead of what I expect and the other browser show:

© Copyright Mikle 2009 - ∞

This is probably some stupid thing, but this is making me understand why IE is getting so much hate. How do I fix this?

Answer

kdgregory picture kdgregory · Mar 21, 2009

Entities need a semi-colon:

©

Firefox is being incorrectly over-helpful in this case.