unescape(*arg)
概要
URI.unescape(str)
参数
str
对这个字符串进行解码。
用法
require
'uri'
enc_uri =
URI
.escape("http://example.com/?a=\11\15")
p enc_uri
# => "http://example.com/?a=%09%0D"
p
URI
.unescape(enc_uri)
# => "http://example.com/?a=\t\r"
另有别名
:
decode
陈海茵
赵红霞