punycode_to_string()

使用 版本 下拉選單切換服務。 了解更多關於導航的資訊。
Apply to: ✅ Microsoft Fabric ✅ Azure Data Explorer ✅ Azure Monitor ✅ Microsoft Sentinel

從 punycode 窗體譯碼 輸入字串。 字串不應包含初始 xn--,且只能包含 ASCII 字元。

語法

punycode_to_string('input_string')

深入瞭解 語法慣例。

參數

姓名 類型 必要 描述
input_string string ✔️ 要從 punycode 窗體譯碼的字串。 函式接受一個字串自變數。

傳回

  • 傳 string 回 ,表示原始譯碼的字串。
  • 如果譯碼失敗,則傳回空的結果。

範例

 print decoded = punycode_to_string('acadmie-franaise-npb1a')
解碼
académie-française