Which JavaScript function is compatible with PHP urldecode function?
<p>On the server side the PHP code will be using <code>urldecode()</code> function to decode, but the JavaScript code is responsible to encode the URL. Which of the following JavaScript function is compatible with the PHP <code>urldecode()</code> function:</p>

<blockquote>
  <ul>
  <li>escape()     </li>
  <li>encodeURI()  </li>
  <li>encodeURIComponent()</li>
  </ul>
</blockquote>
