iconv():
<?php
$str = "1978,Dérick,Rethans";
echo iconv('iso-8859-1', 'utf8', $str);
?>
Output:
1978,Dérick,Rethans
iconv():
<?php
$str = "© 2004, by Derick Rethans";
echo iconv('iso-8859-1', 'iso-8859-2', $str);
?>
output:
Notice: iconv() [function.iconv]: Detected an illegal character in input string in /home/httpd/pres2/display.php(461) : eval()'d code on line 3
iconv():
<?php
$str = "© 2004, by Derick Rethans";
echo iconv('iso-8859-1', 'iso-8859-2//ignore', $str);
?>
output:
Notice: iconv() [function.iconv]: Detected an illegal character in input string in /home/httpd/pres2/display.php(461) : eval()'d code on line 3
2004, by Derick Rethans