title: How to decode url-encoded string in javascript
body: <p>I use javascript / jquery to fill dom elements that contain umlauts:</p>
  
  <pre><code>var text1 = "Unser platonisches Internetreich droht in die H%E4nde einer bewaffneten Miliz zu fallen."
  
  $("#quote1 span").html(unescape(text1));
  </code></pre>
  
  <p>How can I get rid of the url encoding e.g. "H%E4nde" and use "Hände" instead? I tried </p>
  
  <pre><code>&lt;meta charset="utf-8" /&gt;
  
  &lt;meta name="http-equiv" content="Content-type: text/html; charset=UTF-8"/&gt;
  
  &lt;script type="text/javascript" src="js/index.js" charset="utf-8"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>But none of them seem to work...</p>
  
  <p>Thanks for help.</p>