kirby/vendor/getkirby/toolkit/lib/url.php
/**
   * Tries to convert an internationalized domain name to
   * the UTF8 representation
   * Requires the intl PHP extension
   *
   * @param string $url
   * @return string
   */
Tries to convert an internationalized domain name to
the UTF8 representation
Requires the intl PHP extension

@param string $url
@return string
Tries to convert an internationalized domain name to the UTF8 representation Requires the intl PHP extension @param string $url @return string
public static function idn($url) {
    if(static::isAbsolute($url)) $url = static::short($url);
    if(!function_exists('idn_to_utf8')) return $url;
    return idn_to_utf8($url);
  }
public static function idn ( $ url ) { if ( static :: isAbsolute ( $ url ) ) $ url = static :: short ( $ url ) ; if ( ! function_exists ( 'idn_to_utf8' ) ) return $ url ; return idn_to_utf8 ( $ url ) ; }
Tries to convert an internationalized domain name to
 the UTF8 representation
 Requires the intl PHP extension
Tries to convert an internationalized domain name to the UTF8 representation Requires the intl PHP extension