- mb_convert_encoding: documentation ( source)
<?php
//<h1>Katowice => Krakow</h1>
//<h1>Katowice =< Krakow </h1>
$html = "<td><h1>Katowice © Krakow </h1></td>";
//$html = "<p><span>Copyright © 2008 Your Company Name</span>";
$html = mb_convert_encoding($html, 'HTML-ENTITIES', "UTF-8");
//$html = htmlspecialchars($html);
print $html."\n";
//$html = htmlspecialchars_decode($html);
//$html = mb_convert_encoding($html, "UTF-8", 'HTML-ENTITIES');
print $html;