Roland Liebl wrote:
OK this fails:
<?php if(!iconv("UTF-8", "UTF8//IGNORE", '123€123')){ echo "failure"; } else{ echo "success"; }
I don't know why, but we have:
if (function_exists('iconv')) return iconv('UTF8', 'UTF8//IGNORE', $input);
So, I think we could handle this issue with:
if (function_exists('iconv') && ($result = iconv('UTF8', 'UTF8//IGNORE', $input))) return $result;