I am creating a URL string like so:
[Items appendString:[object objectForKey:@"Items"]]; [Items appendString:@"*"]; [Items deleteCharactersInRange:NSMakeRange([Items length]-1, 1)]; //This returns this: ~SEWER/FLATWORK SUPPLY & INSTALL - 25% of CONTRACT*~SEWER/FLATWORK SUPPLY & INSTALL - 75% of CONTRACT*SUMP PUMP PIT //add Items to URL NSString *fullURL = [NSString stringWithFormat:@"https://example.com?Items=%@, [Items stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]]; but it returns like so:
Items=~SEWER/FLATWORK%20SUPPLY%20&%20INSTALL%20-%2025%25%20of%20CONTRACT*~SEWER/FLATWORK%20SUPPLY%20&%20INSTALL%20-%2075%25%20of%20CONTRACT*SUMP%20PUMP%20PIT how do I get it return like this:
%20%26%20 instead of %20&%20 for the & ?
NSMutableURL?