DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Robert has posted 10 posts at DZone. View Full User Profile

Decoding A URL Encoded String

09.05.2008
| 895 views |
  • submit to reddit
        / how to decode a URL encoded string

NSString *orig = @"i%20am%20not%20url%20safe";
NSString *decoded = [orig stringByReplacingPercentEscapesUsingEncoding:NSASCIIStringEncoding];