IOS Knowledge Pot

Wednesday, 14 May 2014

Url Special Characters encoding

NSString *str=@"!*'();:@&=+$,/?%#[]";//put the url here...

NSString *encodedStr=(NSString *)CFBridgingRelease(CFURLCreateStringByAddingPercentEscapes(
                                                                          NULL,
                                                                          (CFStringRef)str,
                                                                          NULL,
                                                                          CFSTR("!*'();:@&=+$,/?%#[]"),
                                                                          kCFStringEncodingUTF8));
NSLog(@"after encoding = %@",encodedStr);
Posted by Unknown at 05:36
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2016 (1)
    • ►  February (1)
  • ►  2015 (26)
    • ►  December (1)
    • ►  November (2)
    • ►  October (3)
    • ►  September (7)
    • ►  August (5)
    • ►  July (1)
    • ►  June (4)
    • ►  April (2)
    • ►  March (1)
  • ▼  2014 (55)
    • ►  November (4)
    • ►  October (2)
    • ►  September (1)
    • ►  July (7)
    • ►  June (4)
    • ▼  May (10)
      • Playing embedded video in iOS
      • Rendering Microsoft Files in Using Office Web App.
      • Url Special Characters encoding
      • Detect blinks and smiles in Image
      • Text to Speech in iOS7
      • HTML string from an NSAttributedString
      • Execute Javascript in iOS Applications [ iOS 7 ]
      • Sharing Data using UIPasteboard in iOS app
      • Fetching title, description and keywords from site...
      • FavIcon from UIWeview
    • ►  April (6)
    • ►  March (8)
    • ►  February (6)
    • ►  January (7)
  • ►  2013 (16)
    • ►  November (4)
    • ►  October (2)
    • ►  September (10)
Simple theme. Powered by Blogger.