Answers for "urlencode string swift"

2

urlencode string swift

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

Code answers related to "Swift"

Browse Popular Code Answers by Language