Edit

Share via


punycode_domain_from_string()

Applies to: ✅ Microsoft FabricAzure Data ExplorerAzure MonitorMicrosoft 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 string that represents the original Internationalized Domain Name.
  • Returns an empty result if decoding failed.

Example

Kusto
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