Created
April 12, 2013 15:23
-
-
Save indragiek/5372841 to your computer and use it in GitHub Desktop.
Sanitizing URL strings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSString *sanitizedString = [URLString stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; | |
NSURL *URL = [NSURL URLWithString:sanitizedString]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment