DUKE DUKE - 1 year ago 106
HTML Question

Why Unicode character for "Hearts" symbol fails with HTML

According to my understanding the following HTML markup should display a heart symbol, but it is not. What I am missing?
I got the data about Unicode characters here:

<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

Answer Source

The XML/HTML &#NNNN; notation is for decimal values. Try using the &#xNNNN; form to force it to interpret it as hexadecimal, or, alternatively, use the decimal value.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download