I created Google Custom Search. The logic is that when you search for a user, the result will be displayed on the page, and the page title will be changed to a search query using javascript. I use decodeURI to decode Unicode characters. But the space is decoded as +. For example, if I search for money, it will be decoded as money + creation and it will be displayed as a title. Someone please help solve this. I want to display space instead of the + symbol.
Code
if (query != null){document.title = decodeURI(query)+" | Tamil Search";}</script>
source share