rcerrejon
4/7/2017 - 8:35 AM

String to URL

String to URL

let stringOriginal = "http://www.google.de/json?origin with space"
let stringUrlEnc = stringOriginal.addingPercentEncoding(withAllowedCharacters: .urlHostAllowed)