punycode_domain_to_string

This article describes the punycode_domain_to_string() command.

Encodes Internationalized Domain Name in Applications (IDNA) string to Punycode form.

Syntax

punycode_domain_to_string(domain)

Parameters

NameTypeRequiredDescription
domainstring✔️A string to be encoded to punycode form. The function accepts one string argument.

Returns

  • Returns a string that represents punycode-encoded original string.
  • Returns an empty result if encoding failed.

Examples

datatable(domain:string )['Lê Lợi。Thuận Thiên。com', 'Riðill。Skáldskaparmál。org', "Kaledvoulc'h.Artorījos.edu"]
| extend str=punycode_domain_to_string(domain)
domainstr
Lê Lợi。Thuận Thiên。comxn–L Li-gpa4517b.xn–Thun Thin-s4a7194f.com
Riðill。Skáldskaparmál。orgxn–Riill-jta.xn–Skldskaparml-dbbj.org
Kaledvoulc’h.Artorījos.eduKaledvoulc’h.xn–Artorjos-ejb.edu