Google Product Forums

Re: Replacing %20 with a space

faxe-cz Nov 24, 2011 4:53 PM
Posted in group: Google Analytics

Categories: Discuss issues related to your accounts, reports and data :

it is a known bug... I have no idea why it is still there. It has been reported so many times already without any reaction from google...

anyway.. the solution is simple: In the code for showing search results add one more decodeURIComponent() on line 10 of the code.

To be clear... find this line:
return decodeURIComponent(keyvaluepair[1].replace(/\+/g, ' '));

and replace it with this one:
return decodeURIComponent(decodeURIComponent(keyvaluepair[1].replace(/\+/g, ' ')));

That's it.