Closed imjoehaines closed 1 year ago
Follow up to #661 to make use of the PHP 7.2+ JSON_INVALID_UTF8_SUBSTITUTE flag, which means we don't have to try to cleanup invalid UTF-8 ourselves
JSON_INVALID_UTF8_SUBSTITUTE
I've also changed our use of mb_convert_encoding to guess the string's encoding, rather than assume ISO-8859-1
mb_convert_encoding
ISO-8859-1
Goal
Follow up to #661 to make use of the PHP 7.2+
JSON_INVALID_UTF8_SUBSTITUTE
flag, which means we don't have to try to cleanup invalid UTF-8 ourselvesI've also changed our use of
mb_convert_encoding
to guess the string's encoding, rather than assumeISO-8859-1