[php-src] Issue #8279: mb_detect_encoding does not return the first matching encoding anymore
| From: | alexdowad | Date: | Mon, 25 Apr 2022 14:49:58 +0000 |
| Subject: | [php-src] Issue #8279: mb_detect_encoding does not return the first matching encoding anymore | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-241230@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/8279
Comment Author: alexdowad
> It was reported to us that the problem was happening on common slavic names. I tried several
> names from https://en.wikipedia.org/wiki/Slavic_names and found that
> both 'Dušan' and 'Živko' are wrongly detected as latin1. I understand that
> detecting encoding on a short string is hard but it is a problem that the function is failing on
> common words, and it should in this case use the order of the passed encoding to return the first
> valid one as before.
Thanks for reporting that. What language are those names from?