Created
July 12, 2013 10:47
-
-
Save mikeabdullah/5983511 to your computer and use it in GitHub Desktop.
Correct escaping of a URL path
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
CFStringRef escaped = CFURLCreateStringByAddingPercentEscapes(NULL, | |
(CFStringRef)path, | |
NULL, | |
CFSTR(";?#"), | |
kCFStringEncodingUTF8); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment