What are the drawbacks of using utf8_encode compared to mb_convert_encoding in PHP?

When converting strings to UTF-8 encoding in PHP, using utf8_encode may not always produce the desired results, especially when dealing with characters outside the Latin-1 range. It is recommended to use mb_convert_encoding instead, as it provides more flexibility and support for a wider range of character encodings.

// Using mb_convert_encoding to convert a string to UTF-8
$string = "ééé";
$utf8_string = mb_convert_encoding($string, 'UTF-8', 'ISO-8859-1');
echo $utf8_string;