I was just testing something with AJAX and I found that on success if I alert
alert(decodeURI(\'%\'));
or
alert(encodeURIC
Chrome barfs when trying from the console. It gives an URIError: URI malformed. The % is an escape character, it can't be on its own.