I am preparing a special string, in which keys are values are concatenated like below:
username=foo&age=24&email=foo@bar.com&homepage=http://foo.com
- & is the separator for two key=value pairs
- value is url encoded
I have a scenario where there are multiple home pages for a user. I want to specify multiple urls for the homepage key
name=foo&age=24&email=foo@bar.com&homepage=url1<some_safe_url_separator_char>url2<some_safe_url_separator_char>url3
- We have no control/idea over what url1, url2, .. may contain?
What is a good choice of some_safe_url_separator_char?
In other words I am not looking for a safe character to be used IN a url, but a safe character to be used to SEPARATE two urls in a string