Skip to content

Instantly share code, notes, and snippets.

@mikeabdullah
Created July 12, 2013 10:47
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikeabdullah/5983511 to your computer and use it in GitHub Desktop.
Save mikeabdullah/5983511 to your computer and use it in GitHub Desktop.
Correct escaping of a URL path
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