<!doctype html>
<html lang="en">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
</head>
<body>
<?php
$text = "This is the Euro symbol '€'.";
echo 'ISO-8859-1 to UTF-8 using iconv (//TRANSLIT, //IGNORE, none qualifiers) on an HTML page with a charset=utf-8 meta tag.<br /><br />';
echo 'Original : ', $text, '<br /><br />';
echo 'TRANSLIT : ', iconv("ISO-8859-1", "UTF-8//TRANSLIT", $text), '<br />';
echo 'IGNORE : ', iconv("ISO-8859-1", "UTF-8//IGNORE", $text), '<br />';
echo 'Plain : ', iconv("ISO-8859-1", "UTF-8", $text), '<br />';
echo "<br />";
echo "& euro; or & #x20ac; bluntly gets the job done for a str_replace -- € or €<br />";
echo "<br /><br /><br />";
$text2 = "This is some German 'Weiß, Goldmann, Göbel, Weiss, Göthe, Goethe und Götz'.";
echo 'Original : ', $text2, '<br /><br />';
echo 'TRANSLIT : ', iconv("ISO-8859-1", "UTF-8//TRANSLIT", $text2), '<br />';
echo 'IGNORE : ', iconv("ISO-8859-1", "UTF-8//IGNORE", $text2), '<br />';
echo 'Plain : ', iconv("ISO-8859-1", "UTF-8", $text2), '<br />';
?>