On my site, an encoded quote (%22) in url path causes "Illegal characters in path" error
I want specify search URLs like so:
www.site.com/search/%22Vitamin+C%22
%22 is an encoded quotation mark "
I'm using a Asp.Net URL Routing and the route is specified like this: "search/{searchTerm}"
When Context["searchTerm"]
is retrieved and Decoded, it would result in the above example being: "Vitamin+C" [including quotes]
It would seem that Asp.Net thinks that the there are illegal characters in the URL. I don't understand why, when I AM URLEncoding the text.
How can I encode Quotation marks without Asp.Net complaining? Many people will use quotation marks to group words together and I want to allow this "smart searching"