Created
July 16, 2013 11:05
-
-
Save mikeabdullah/6007775 to your computer and use it in GitHub Desktop.
Escaping a URL query to avoid confusion over + characters
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)query, | |
NULL, | |
CFSTR("+#"), | |
kCFStringEncodingUTF8); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment