Wednesday, March 16, 2011

ASCII url encoding Objective C

 
NSString* escapedUrlString = [unescapedString stringByAddingPercentEscapesUsingEncoding:NSASCIIStringEncoding];

Source: http://mesh.typepad.com/blog/2007/10/url-encoding-wi.html

No comments: