對 URI 元件進行解碼 (string.decode_uri_component)
聲明
URI 元件 = string.decode_uri_component(編碼後的 URI 元件)
參數
- 編碼後的 URI 元件
文字型,編碼後的 URI 元件
回傳值
- URI 元件
字串型,返回解碼後的 URI 元件字串
說明
string.encode_uri_component的反函式,將編碼後的 URI 元件解碼回原始內容
關鍵詞:URI 元件解碼
該函式在 20250313 以後版本方可使用
範例
nLog(string.decode_uri_component("https://www.example.com/%E6%B5%8B%E8%AF%95")) -- https://www.example.com/测试