Skip to content

Instantly share code, notes, and snippets.

@jcromartie
Created November 20, 2009 21:27
Show Gist options
  • Save jcromartie/239799 to your computer and use it in GitHub Desktop.
Save jcromartie/239799 to your computer and use it in GitHub Desktop.
- (NSString *)stringByActuallyAddingURLEncoding {
return [(NSString *)CFURLCreateStringByAddingPercentEscapes(
NULL,
(CFStringRef)self,
NULL,
(CFStringRef)@"!*\"'();:@&=+$,/?%#[]",
kCFStringEncodingUTF8) autorelease];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment