Baca dalam bahasa Inggris Edit

Bagikan melalui


punycode_domain_to_string()

Applies to: ✅ Microsoft FabricAzure Data ExplorerAzure MonitorMicrosoft Sentinel

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

Syntax

punycode_domain_to_string(domain)

Parameters

Name Type Required Description
domain string ✔️ 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)
domain str
Lê Lợi。Thuận Thiên。com xn--L Li-gpa4517b.xn--Thun Thin-s4a7194f.com
Riðill。Skáldskaparmál。org xn--Riill-jta.xn--Skldskaparml-dbbj.org
Kaledvoulc'h.Artorījos.edu Kaledvoulc'h.xn--Artorjos-ejb.edu