I have been having some problem with the stringByAddingPercentEscapesUsingEncoding: method. Here\'s what happens:
stringByAddingPercentEscapesUsingEncoding:
When I try to use the method to conver
For me, this:
NSString *s=[@"..City=Cl&PostalCode=Rh6 0Nt" stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; NSLog(@"s=%@",s);
... outputs:
s=..City=Cl&PostalCode=Rh6%200Nt
You're most likely using the wrong encoding.