NSString *str=@"!*'();:@&=+$,/?%#[]";//put the url here...
NSString *encodedStr=(NSString *)CFBridgingRelease(CFURLCreateStringByAddingPercentEscapes(
NULL,
(CFStringRef)str,
NULL,
CFSTR("!*'();:@&=+$,/?%#[]"),
kCFStringEncodingUTF8));
NSLog(@"after encoding = %@",encodedStr);
Wednesday, 14 May 2014
Url Special Characters encoding
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment