punycode_domain_from_string()

适用于:✅Azure 数据资源管理器Azure MonitorMicrosoft Sentinel

从编码的应用程序国际化域名 (IDNA) punycode 形式中解码输入字符串。

语法

punycode_domain_from_string(encoded_string)

详细了解语法约定

参数

客户 类型​​ 必需 说明
encoded_string string ✔️ 要从 punycode 形式解码的 IDNA 字符串。 此函数接受一个字符串参数。

返回

  • 返回一个 string,它表示原始的国际化域名。
  • 如果解码失败,则返回空结果。

示例

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)
已编码
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