What are the limitations of using utf8_encode in PHP for converting text to Unicode?

The utf8_encode function in PHP is used to convert text from ISO-8859-1 to UTF-8 encoding. However, it has limitations when dealing with characters outside of the ISO-8859-1 character set. To properly convert text to Unicode, it is recommended to use the mb_convert_encoding function in PHP, which supports a wider range of character encodings.

$text = "Some text with special characters like é and å";
$utf8_text = mb_convert_encoding($text, 'UTF-8', 'ISO-8859-1');
echo $utf8_text;