neitanod / forceutf8

PHP Class Encoding featuring popular Encoding::toUTF8() function --formerly known as forceUTF8()-- that fixes mixed encoded strings.
1.63k stars 367 forks source link

PHP future deprecation warning #89

Open avizaz opened 4 years ago

avizaz commented 4 years ago

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

avizaz commented 3 years ago

PHP8 - Fatal error: Uncaught Error: Undefined constant "ICONV_TRANSLIT", unfortunately looks like author dropped this

garrettw commented 1 year ago

You have to have the iconv PHP extension installed and loaded for that to work.