title: How can I display special characters returned by child_process.exec?
body: <p>I'm using <code>child_process.exec</code> to run a command that includes in its output some special characters, but these are invariably interpreted by Node.js as replacement characters (<code>\uFFFD</code>). The following snippet should demonstrate this behavior sufficiently:</p>
  
  <pre><code>require("child_process").exec("echo äëïöü", function(stderr, stdout) {
      console.log(stdout);
  });
  </code></pre>
  
  <p>Is there any way I can determine what the special characters returned in the output actually are? I'm using Windows, if it's relevant.</p>