urldecode
urldecode
函数主要是用来将字符串或 bytes 进行 urldecode 解码
函数原型
func urldecode(v1 string/bytes) string
参数介绍
参数名称 | 参数介绍 |
---|---|
v1 | 待转换数据 |
举例
待转换数据 | 转换语句 | 输出结果 |
---|---|---|
http:%2F%2Fexample.com%3Fa=b | urldecode("http:%2F%2Fexample.com%3Fa=b") | http://example.com?a=b |
b"%68%74%74%70%3A%2F%2F%65%78%61%6D%70%6C%65%2E%63%6F%6D%3F%61%3D%62" | urldecode(b"%68%74%74%70%3A%2F%2F%65%78%61%6D%70%6C%65%2E%63%6F%6D%3F%61%3D%62") | http://example.com?a=b |
Was this page helpful?