Erro mb_convert_encoding: Chamada para a função indefinida mb_convert_encoding ()
Atualmente, estou escrevendo uma função PHP, mas quando o script completo é executado, estou recebendo um erro:
Erro:
Call to undefined function mb_convert_encoding()
Minha função:
function cleanData(&$str)
{
if($str == 't') $str = 'TRUE';
if($str == 'f') $str = 'FALSE';
if(preg_match("/^0/", $str) || preg_match("/^\+?\d{8,}$/", $str) || preg_match("/^\d{4}.\d{1,2}.\d{1,2}/", $str)) {
$str = "'$str";
}
if(strstr($str, '"')) $str = '"' . str_replace('"', '""', $str) . '"';
$str = mb_convert_encoding($str, 'ISO-8859-1','utf-8');
}
Alguém pode ver onde estou indo errado. Muito obrigado antecipadamente pelo seu tempo.
Felicidades