url::unIdn($url)

Converts a URL with an internationalized domain name to the machine-readable Punycode representation

  • since: Kirby 2.5.3
  • $url (string)
    The URL to be converted
  • return (string)
    The converted URL

Please note that the conversion may fail for invalid URLs. In this case, this method will return the passed URL without any changes.


Is something missing or incorrect? Edit this page on Github…