I have a search form in my app that uses a jQuery autocomplete plugin. The plugin sends over the suggested item after running the querystring through encodeURI(q)
.
So an item like Johnny's sports comes to my view as Johnny's sports
How do I decode the string back to Johnny's Sports so I can query the database?
I've tried several urllib
functions that have been suggested in other posts but I think I'm seriously misunderstanding how they work because I'm not seeing it work.
Any help is greatly appreciated.