The first two example links are working the third one returns NIL.
Why is NSUrl returning nil for such string, even though it\'s a valid url in a browser?
Am
For swift3 you can do like this
swift3
let url = URL(string:url.addingPercentEncoding(withAllowedCharacters: NSCharacterSet.urlQueryAllowed)!)!