Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Url: IDN domain automatically convert to UTF-8. #190

merged 12 commits into from Jan 5, 2021


Copy link

@janbarasek janbarasek commented Dec 25, 2020

  • bug fix
  • BC break? yes

By documentation (more info: the domain is same as tä, but Nette Url claims that it is a different URLs:

$url = new Url('https://tä');
$url2 = new Url('');

$url->isEqual($url2); // false

This modification adds automatic conversion of IDN domains to UTF-8 format (if an extension is available). Prior to conversion, the use of IDNs is detected to maintain maximum performance.

If a particular PHP does not have an extension, it can be replaced by the symfony/polyfill-intl-idn package.


@dg dg force-pushed the master branch 6 times, most recently from bda06a4 to e791a00 Compare January 4, 2021 15:04
Copy link

dg commented Jan 5, 2021


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

Successfully merging this pull request may close these issues.

None yet

2 participants