Why doesn't CFURLCreateStringByAddingPercentEscapes turn apostrophes into %27? In fact it hardly seems to do any characters. Heres what Im doing:
NSString *myString = @"!@#$%^&()<>?:{},/;'[]";
NSString *percentEscapedString = (NSString *)CFURLCreateStringByAddingPercentEscapes(NULL, (CFStringRef)myString, NULL, NULL, kCFStringEncodingUTF8);
I get:
!@%23$%25%5E&()%3C%3E?:%7B%7D,/;'%5B%5D
whereas I should get:
%21%40%23%24%25%5e%26%28%29%3c%3e%3f%3a%7b%7d%2c%2 f%3b%27%5b%5d