Description

ToPunycode converts unicode domain names to DNS-appropriate punycode names. This function will return an empty string result for domain names with invalid unicode strings. This function expects domain names in lowercase.