I have a URL string (NSString) with spaces and & characters. How do I url encode the entire string (including the & ampersand
NSString
&
This code helped me for encoding special characters
NSString* encPassword = [password stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet alphanumericCharacterSet]];