Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Switch services using the Version drop-down list. Learn more about navigation.
Applies to: ✅ Azure Data Explorer ✅ Azure Monitor ✅ Microsoft 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
stringthat 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 |
Related content
- To retrieve the original decoded string, see punycode_domain_from_string().