title: How to decode a Base64 string in JScript
body: <p>I have to decode a Base64 String in JScript, and I've tried this code for performing the purposed action :</p>
  
  <pre><code>var xmlDom = new ActiveXObject("Microsoft.XMLDOM");
  var el = xmlDom.createElement("tmp");
  el.dataType = "bin.Base64"
  el.text = "aGVsbG8gd29ybGQ=";
  WScript.Echo(el.nodeTypedValue);
  </code></pre>
  
  <p>But, unfortunately, It doesn't work. It should show the message <code>Hello world</code> but the return message is a bunch of Chinese characters. Here's a screen as proof </p>
  
  <p><a href="https://i.stack.imgur.com/snYRh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/snYRh.png" alt="enter image description here"></a> </p>
  
  <p>And, Is there another method for decoding a Base64 encoded string?</p>