Skip to content

Instantly share code, notes, and snippets.

@hjazz
Created April 15, 2014 08:24
Show Gist options
  • Save hjazz/10713473 to your computer and use it in GitHub Desktop.
Save hjazz/10713473 to your computer and use it in GitHub Desktop.
URLPercentEscape
NSString * encodedString = (NSString *)CFBridgingRelease(CFURLCreateStringByAddingPercentEscapes(NULL,
(CFStringRef)queryString,
NULL,
(CFStringRef)@"!*'();:@&=+$,/?%#[]",
kCFStringEncodingUTF8 ));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment