Forum Moderators: open

Message Too Old, No Replies

Red Heart Character Entity

Doesn't work in either charset

         

Lorel

11:13 pm on May 26, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I'm trying to find a character entity for a red heart that will work on all browsers. I've found several examples but none of them work on all browsers.

Safari on the Mac displays ♡ as a red outlined heart but it doesn't show up in Windows IE 6 or Firefox.

Windows IE 6 will only display a narrow heart with a solid color using this character entity: ♥

Firefox will only display ❤ which is a wider heart with a solid color.

I've tried both the charset=utf-8 and charset=iso-8859-1 on all the above browsers and that doesn't seem to have an effect at all.

Anyone know how to get one of those heart entities to work in all browsers?

bill

7:50 am on May 27, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Use a GIF image.

pageoneresults

8:25 am on May 27, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I use papabaer's...

Character Entity Reference HTML 4
[bigbaer.com...]

If it isn't there or if it doesn't display in your browser properly, then an image is most likely your best option as bill stated.

Lorel

12:41 pm on May 27, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month




Thanks for the link. Haven't seen that one.

That character entity is on the above list but doesn't display in all browsers. I don't want to use an image so will just hope future browsers can handle it.

thanks.

Lorel

1:39 pm on May 27, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I just found a discussion on this bug in Mozilla on why this character entity doesn't work on Firefox and one of the researchers said to change Firefox Preferences to the following:

Preferences > Content > Fonts & Colors (Advanced) > Fonts for: Japanese > and choose "Osaka"

This works in Firefox on the Mac. In fact all 3 of the character entity codes for hearts are now showing up on the Mac Safari and Firefox.

Anyone know of a workaround for Windows IE 6?

I hope it's ok to post this url to that discussion:

Bug 212745:

[bugzilla.mozilla.org...]

penders

7:39 pm on May 27, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Anyone know of a workaround for Windows IE 6?

From that page on bigbaer.com [bigbaer.com] that pageoneresults links to:

Internet Explorer 6 is aided here by the use of the special "Arial Unicode MS" font heading the font-family ("arial unicode MS", arial, geneva, sans-serif;)

Aside: Why don't the styles on that page appear for me in FF1.5/2? Does it work for you? (OK in IE6, Opera and Safari!?)