Reputation: 115
[UPD]:
I've just double-checked. It behaves this way under Nginx 1.17 only. Apache works fine!
The code:
$url = '/Регистрация/?lala=123';
$res = parse_url($url);
echo '<pre>';
print_r($res);
echo '</pre>';
Under Apache everything works fine. Under Nginx 1.17 it looks like below.
Any ideas?
Upvotes: 1
Views: 369
Reputation: 414
There is a known and still not fixed bug in PHP: https://bugs.php.net/bug.php?id=52923
Basically the function has never worked properly with UTF8. You can try alternative options, for example what was already proposed in comments
Upvotes: 1