Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Decoding URL query items for schemes where + is to be treated as a space
NSURLComponents *components = [NSURLComponents componentsWithString:input];
// Re-encode + symbols so NSURLQueryItem recognises them as spaces
components.percentEncodedQuery = [components.percentEncodedQuery
NSArray *items = components.queryItems;
// Enumerate and handle the items
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.