SSamTure.net

워드프레스

URL encoding in Objective-C

[c]
NSString * encodedString = (NSString *)CFURLCreateStringByAddingPercentEscapes(NULL,(CFStringRef)unencodedString,NULL,(CFStringRef)@"!*'();:@&=+$,/?%#[]",kCFStringEncodingUTF8);
[/c]

Leave a Reply

Your email address will not be published. Required fields are marked *