So I have two parameters I want to pass, one is a string and the other is an array named query and tags. The problem is that tags has multiple values (like an array). I tried
/?query=val&tags=val1+val2+val3
But since my val1,2,3 may have spaces in them, the encoding messes it up because space is encoded as '+'. Also can't use multiple variables since the length of the array is dynamic. How should I encode this?
EDIT: for the answers on the similar question, the array is split by &'s, however that is reserved for splitting the query into parameters. Is there a way of encoding this such that the parameter stays between two &'s?