url::idn($url)

Converts a URL with an internationalized domain name to the human-readable UTF8 representation

  • since: Kirby 2.3.2
  • $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.