DNS Punycode Handling
List of Global Functions
DecodeDomainName - Decodes the domain name (relative or FQDN) from the Punycode.
DecodePunycodes - Converts list of Punycode strings into their UTF-8 representation.
DocodeDomainNames - Decodes the list of domain names to their Unicode representation. This function is similar to DecodePunycodes but it works with every string as a domain name (that means every domain name is parsed by dots and separately evaluated).
EncodeDomainName - Encodes the domain name (relative or FQDN) to the Punycode.
EncodePunycodes - Converts list of UTF-8 strings into their Punycode ASCII repserentation.
GetMaximumCacheSize - Returns the maximum cache size (sum of already converted strings).
SetMaximumCacheSize - Offers to set the maximum cache size (sum of already converted strings).
List of Global Variables
Decodes the domain name (relative or FQDN) from the Punycode.
Function parameters
string encoded_domain_name
Return value
string - decoded domain_name
Example 78.
DecodeDomainName("xn--ala-qma83eb.xn--jlinka-3mb.go.home") -> "ĹžĂĹžala.jĹŻlinka.go.home"
Converts list of Punycode strings into their UTF-8 representation.
Function parameters
list <string> punycode_strings
Return value
list <string> - decoded_strings
Decodes the list of domain names to their Unicode representation. This function is similar to DecodePunycodes but it works with every string as a domain name (that means every domain name is parsed by dots and separately evaluated).
Function parameters
list <string> encoded_domain_names
Return value
list <string> - decoded_domain_names
Example 79.
DocodeDomainNames(["mx1.example.org", "xp3.example.org.", "xn--ala-qma83eb.org.example."]) -> ["mx1.example.org", "xp3.example.org.", "ĹžĂĹžala.org.example."]
Encodes the domain name (relative or FQDN) to the Punycode.
Function parameters
string decoded_domain_name
Return value
string - encoded domain_name
Example 80.
EncodeDomainName("ĹžĂĹžala.jĹŻlinka.go.home") -> "xn--ala-qma83eb.xn--jlinka-3mb.go.home"
Converts list of UTF-8 strings into their Punycode ASCII repserentation.
Function parameters
list <string> punycode_strings
Return value
list <string> - encoded_strings
Returns the maximum cache size (sum of already converted strings).
Return value
integer - maximum_cache_size