fylax/forceutf8
ForceUTF8 is a PHP library for cleaning and converting text to valid UTF-8. It fixes invalid byte sequences and double-encoded characters, making it useful for sanitizing user input, database data, and JSON/API output before storage or display.
PHP Class Encoding featuring popular Encoding::toUTF8() function --formerly known as forceUTF8()-- that fixes mixed encoded strings.
How can I help you explore Laravel packages today?