SFAPIclient/Requests/IDNAEncoder.php
public static function encode($string) {
		$parts = explode('.', $string);
		foreach ($parts as &$part) {
			$part = self::to_ascii($part);
		}
		return implode('.', $parts);
	}
public static function encode($string) {
		$parts = explode('.', $string);
		foreach ($parts as &$part) {
			$part = self::to_ascii($part);
		}
		return implode('.', $parts);
	}
public static function encode ( $ string ) { $ parts = explode ( '.' , $ string ) ; foreach ( $ parts as & $ part ) { $ part = self :: to_ascii ( $ part ) ; } return implode ( '.' , $ parts ) ; }
Encode a hostname using Punycode

@param string $string Hostname
@return string Punycode-encoded hostname
Encode a hostname using Punycode