title: How to decode a string in JavaScript?
body: <p>This isn't working for me:</p>
  
  <pre><code>var foo = "Collection%3A 9 Bad Interviews With Former GOP Presidential Candidates";
  
  console.log(decodeURI(foo));
  </code></pre>
  
  <p>It outputs:</p>
  
  <pre><code>Collection%3A 9 Bad Interviews With Former GOP Presidential Candidates
  </code></pre>
  
  <p>That's not correct, if you enter the foo string on a site like this:</p>
  
  <p><a href="http://meyerweb.com/eric/tools/dencoder/" rel="noreferrer">http://meyerweb.com/eric/tools/dencoder/</a></p>
  
  <p>It shows the right output, which is:</p>
  
  <pre><code>Collection: 9 Bad Interviews With Former GOP Presidential Candidates
  </code></pre>
  
  <p>How to properly decode the string?</p>