title: Javascript encodeURIComponent doesn't encode single quotes
body: <p>Try it out:</p>
  
  <pre><code>encodeURIComponent("'@#$%^&amp;");
  </code></pre>
  
  <p>If you try this out you will see all the special characters are encoded except for the single quote. What function can I use to encode ALL the characters and use PHP to decode them?</p>
  
  <p>Thanks.</p>