If you apply the PHP function utf8_encode() to an already-UTF8 string it will return a garbled UTF8 string.
This class addresses this issue and provides a handy static function called \ForceUTF8\Encoding::toUTF8().
Please check this: https://github.com/neitanod/forceutf8
Thank Sebastián so much! You saved my life :))))
Be First to Comment