说解码,我在下面编码的URL:如何使用编码的查询字符串的URL
let urlString = "https://www.sky.com/api/v1/rest/level2/in-in/?q=a%23+nunit+mac&q=c%23+nunit+mac&ap=裕坊%20邻坊
问题:
let decodedString = urlString.removingPercentEncoding!
但这种方法去除%,但不对其进行解码。
对于上面的例子:a%23+nunit
,解码后,它应该是:a# nunit
但它显示:a#+nunit
请帮助。
谢谢
有没有解决我的问题? – MilkBottle
没有问题。 – matt