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.
Applies to: ✅ Azure Data Explorer ✅ Azure Monitor ✅ Microsoft Sentinel
Decodes input string from encoded Internationalized Domain Name in Applications (IDNA) punycode form.
Syntax
punycode_domain_from_string(encoded_string)
Learn more about syntax conventions.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| encoded_string | string |
✔️ | An IDNA string to be decoded from punycode form. The function accepts one string argument. |
Returns
- Returns a
stringthat represents the original Internationalized Domain Name. - Returns an empty result if decoding failed.
Example
datatable(encoded:string)
[
"xn--Ge-mia.Bulg.edu",
"xn--Lin-8na.Celtchair.org",
"xn--Ry-lja8c.xn--Jng-uta63a.xn--Bng-9ka.com",
]
| extend domain=punycode_domain_from_string(encoded)
| encoded | domain |
|---|---|
| xn--Ge-mia.Bulg.edu | Gáe.Bulg.edu |
| xn--Lin-8na.Celtchair.org | Lúin.Celtchair.org |
| xn--Ry-lja8c.xn--Jng-uta63a.xn--Bng-9ka.com | Rúyì.Jīngū.Bàng.com |
Related content
- To encode a domain name to punycode form, see punycode_domain_to_string().