对 URI 组件进行解码 (string.decode_uri_component)
声明
URI组件 = string.decode_uri_component(编码后的URI组件)
参数
- 编码后的URI组件
文本型,编码后的 URI
返回值
- URI组件
字符串型,返回解码后的 URI 组件字符串
说明
string.encode_uri_component 的反函数,将编码后的 URI 组件转换回 URI 组件
关键词:URI 组件解码
这个函数在 20250313 以后版本方可使用
示例
nLog(string.decode_uri_component("https://www.example.com/%E6%B5%8B%E8%AF%95")) -- https://www.example.com/测试