punycode_domain_to_string()
Applies to: ✅ Microsoft Fabric ✅ Azure Data Explorer ✅ Azure Monitor ✅ Microsoft Sentinel
Encodes Internationalized Domain Name in Applications (IDNA) string to Punycode form.
punycode_domain_to_string(
domain)
Name | Type | Required | Description |
---|---|---|---|
domain | string |
✔️ | A string to be encoded to punycode form. The function accepts one string argument. |
- Returns a
string
that represents punycode-encoded original string. - Returns an empty result if encoding failed.
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 |
- To retrieve the original decoded string, see punycode_domain_from_string().