added check if function iconv exists

This commit is contained in:
Lars Kneschke 2003-10-09 23:38:24 +00:00
parent e2eb4e721f
commit 43ec195c6e

View File

@ -272,11 +272,17 @@
{
return mb_convert_encoding($data,$to,$from);
}
if(function_exists('iconv'))
{
if (($data = iconv($from,$to,$date)))
{
return $data;
}
die("<p>Can't convert from charset '$from' to '$to' without the <b>mbstring extension</b> !!!</p>");
}
#die("<p>Can't convert from charset '$from' to '$to' without the <b>mbstring extension</b> !!!</p>");
// this is not good, not convert did succed
return $data;
}
/*!