I have been having some problem with the stringByAddingPercentEscapesUsingEncoding: method. Here\'s what happens:
stringByAddingPercentEscapesUsingEncoding:
When I try to use the method to conver
This happens when you're trying to encode to NSASCIIStringEncoding a string with characters not supported by ASCII.
NSASCIIStringEncoding
Make sure you're encoding to NSUTF8StringEncoding, if the string can contain UTF8 characters or the method would return nil.
NSUTF8StringEncoding
nil