Answers for "add encoding symbols to string url swift 4"

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