我想编码在PHP中的URL在斯威夫特此相同的行为查询的是斯威夫特例如: let string = "http://site.se/wp-content/uploads/2015/01/Hidløgsma.jpg"
let encodedString = string.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed)
我使用python的请求包获取某个API结果和URL中包含它的+号。但是当我使用requests.get,请求失败的API是无法理解的+号。怎么过,如果我更换+标志%2B(URI编码)请求成功。 有没有办法来编码这些字符,这样我编码URL,同时将它传递给请求包 Error: test [email protected] does not exist
API : https://example.c