Handle special symbols using PHP (i.e. ™ instead of â„¢)
<p>I'm trying to read an XML document which contains <code>&amp;#x2122;</code> (&#x2122;), but for some reason, no matter what I try, it always displays as â„¢.</p>

<p>For example:</p>

<pre><code>$xml = new SimpleXMLElement('&lt;item&gt;&lt;title&gt;test&lt;/title&gt;&lt;/item&gt;&lt;item&gt;&lt;title&gt;&amp;#x2122;&lt;/title&gt;&lt;/item&gt;');
foreach ($xml-&gt;item AS $item)
{
    echo $item-&gt;title . "&lt;br /&gt;";
}

Results in:
test
â„¢
</code></pre>

<p>Just to be clear, I don't want it to just show appropriately, I need to insert it to a DB.</p>

<p>Thanks!</p>
