Answers for "swift url encode"

2

urlencode string swift

let originalString = "test/test"
let escapedString = originalString.addingPercentEncoding(withAllowedCharacters: .urlHostAllowed)
print(escapedString!)
Posted by: Guest on February-06-2020
0

swift url encode string

var urlString = originalString.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed)
Posted by: Guest on May-05-2020

Code answers related to "Swift"

Browse Popular Code Answers by Language