function array2utf8($array) { foreach($array as $chave => $valor) { $retorno[$chave] = utf8_encode($valor); } return $retorno; }