core-bundle/src/Resources/contao/library/Contao/Idna.php
public static function encode($strDomain)
	{
		if ($strDomain == '')
		{
			return '';
		}

		$objPunycode = new Punycode();

		try
		{
			return $objPunycode->encode($strDomain);
		}
		catch (LabelOutOfBoundsException $e)
		{
			return '';
		}
	}
public static function encode($strDomain)
	{
		if ($strDomain == '')
		{
			return '';
		}

		$objPunycode = new Punycode();

		try
		{
			return $objPunycode->encode($strDomain);
		}
		catch (LabelOutOfBoundsException $e)
		{
			return '';
		}
	}
public static function encode ( $ strDomain ) { if ( $ strDomain == '' ) { return '' ; } $ objPunycode = new Punycode ( ) ; try { return $ objPunycode -> encode ( $ strDomain ) ; } catch ( LabelOutOfBoundsException $ e ) { return '' ; } }
Encode an internationalized domain name

@param string $strDomain The domain name

@return string The encoded domain name
Encode an internationalized domain name