Reply to thread

Me too :(


Ironically the meta tag in the HTML output has it as Shift_JIS and that would be a valid encoding. Though somewhat annoyingly if we checked that against mb_list_encodings then it wouldn't be found. Which is my current approach to protecting against this error so this may not be fixable for this site.


Alternative would be to do a try and catch the ValueError but then we have to have a different code path for PHP 8.


Final alternative would be to bail out entirely if it's an unknown charset but as I just pointed out Shift_JIS is supported, it just isn't listed. That would turn it into a basic link at least.


SAD


Back
Top Bottom