forceutf8
forceutf8 copied to clipboard
PHP Class Encoding featuring popular Encoding::toUTF8() function --formerly known as forceUTF8()-- that fixes mixed encoded strings.
If i send the emoji 🇧🇷 (as an example), the code cannot convert it to utf-8 through Encoding::toUTF8($string) kike utf8_encode() can. Also, Encoding::fixUTF8($result) cannot parse the encoded emoji (Result is...
Hi, Any development plan to support PHP 8.2 and 8.3? utf8_* function deprecated and alot of things changed in php8.2/8.3
This package looks abandoned. @neitanod is no answering to the different notification across PR or issues. The most advanced fork looks to be https://github.com/Fylax/forceutf8 Can we continue the development through...
Getting this Warning: Use of undefined constant ICONV_TRANSLIT - assumed 'ICONV_TRANSLIT' (this will throw an Error in a future version of PHP) using like this: Encoding::fixUTF8($str, Encoding::ICONV_TRANSLIT);
fix PHP Deprecated: Implicit conversion from float to int loses precision adding floor() on lines 201, 210, 219, 224, 232 for compat PHP 8.1
Hi. This does not work for the Polish language. It removes Polish characters and replaces them with "?". Additionally, it does not remove all special characters. 
I have many warnings like *Implicit conversion from float 3.015625 to int loses precision in vendor/neitanod/forceutf8/src/ForceUTF8/Encoding.php on line 206* using **PHP8.1.5** One solution is REPLACE: ``` chr(ord($c1) / 64) ```...
covers php5.6 -> 8.0
re-do / resubmit https://github.com/neitanod/forceutf8/pull/46 phpdocblocks are really useful for static analysis - using tools like vimeo/psalm