Skip to content

Instantly share code, notes, and snippets.

@rcerrejon
Last active April 5, 2017 15:25
Show Gist options
  • Save rcerrejon/6668933 to your computer and use it in GitHub Desktop.
Save rcerrejon/6668933 to your computer and use it in GitHub Desktop.
NSString to URL Encode in Objective-C
// NSString to URL Encode
NSString *originalString = [NSString stringWithFormat:@"Hallo Welt"];
NSString *stringURLEncoded = [originalString stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment