title: JavaScript bookmarklet and URL encoding
body: <p>Fully disclosing that I do not know Javascript, I'm trying to get this Javascript:</p>
  
  <pre><code>javascript:location = 'http://validator.w3.org/check?uri=' +escape(location)&amp;doctype=Inline&amp;charset=detect+automatically&amp;ss=1&amp;group=0&amp;user-agent=W3C_Validator/1.654';
  </code></pre>
  
  <p>to work as a Bookmarklet in order to send a URL of this format:</p>
  
  <pre><code>http://validator.w3.org/check?uri=http://www.wordpress.org&amp;charset=%28detect+automatically%29&amp;doctype=Inline&amp;ss=1&amp;group=0&amp;user-agent=W3C_Validator%2F1.654
  </code></pre>
  
  <p>to the W3C valdiator.</p>
  
  <p>I'm URL encoding the Javascript with <a href="http://meyerweb.com/eric/tools/dencoder/" rel="nofollow noreferrer">this encoder</a>, but of course, I'm doing something wrong, either in my Javascript or in the process of encoding it.</p>
  
  <p>Anyone have some ideas in particular or in general about Javascript bookmarklets and URL encoding?  Thanks.</p>