What PHP function converts ø into &Aring;?
<p>Can anyone tell me what PHP function converts <code>ø</code> into <code>&amp;Aring;</code>?</p>

<p>I'm storing special characters like <code>æ, ø, å, ö, ä</code> to html encoded characters.</p>

<p>I've search google and Stackoverflow, but can't figure out what to seach for.<br>
I've managed it before, but can't remember how :(</p>

<p>The following is not working:</p>

<pre><code>$tmp = ('Øving, ære, blå');
$tmp2 = htmlspecialchars($tmp);
echo $tmp.' - '.$tmp2;
</code></pre>

<p>The output is: <code>Øving, ære, blå - Øving, ære, blå</code>  </p>

<p>I'ev also tried <code>htmlentities</code>:  </p>

<pre><code>$tmp = ('Øving, ære, blå');
$tmp2 = htmlentities($tmp);
echo $tmp.' - '.$tmp2;
</code></pre>

<p>This outputs: <code>Øving, ære, blå - Ã�ving, Ã¦re, blÃ¥</code>  </p>

<p>when I want it to be<br>
<code>Øving, ære, blå - &amp;Oslash;ving, &amp;aelig;re, bl&amp;aring;</code></p>
