Skip to content

PHP Force Utf8

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 :))))

Published inCodingPHP

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *