title: How do I fix MSBuild output when calling NodeJS so I don't get weird characters like â”œâ”€â”€?
body: <p>When I call NodeJS from my Visual Studio solution via a pre-build task, I get the following weird characters when building:</p>
  
  <pre><code>event-stream@3.1.7 node_modules\event-stream
  â”œâ”€â”€ stream-combiner@0.0.4
  â”œâ”€â”€ duplexer@0.1.1
  â”œâ”€â”€ from@0.1.3
  â”œâ”€â”€ pause-stream@0.0.11
  â”œâ”€â”€ map-stream@0.1.0
  â”œâ”€â”€ split@0.2.10
  â””â”€â”€ through@2.3.8
  </code></pre>
  
  <p>Also</p>
  
  <pre><code>  [09:57:57] Finished 'ts-emit' after 13 s
    [09:57:57] Starting 'js'...
    [09:58:27] Finished 'js' after 31 s
    [09:58:27] Starting 'Release'...
    [09:58:27] Finished 'Release' after 19 Î¼s
    [09:58:27] Starting 'Prod'...
    [09:58:27] Finished 'Prod' after 13 Î¼s
  </code></pre>
  
  <p>When I run the same command via the cmd.exe prompt, I get this output:</p>
  
  <pre><code>event-stream@3.1.7 node_modules\event-stream
  ├── stream-combiner@0.0.4
  ├── duplexer@0.1.1
  ├── from@0.1.3
  ├── pause-stream@0.0.11
  ├── map-stream@0.1.0
  ├── split@0.2.10
  └── through@2.3.8
  </code></pre>
  
  <p>Also</p>
  
  <pre><code>[10:25:09] Starting 'Debug'...
  [10:25:09] Finished 'Debug' after 5.13 μs
  [10:25:09] Starting 'Dev'...
  [10:25:09] Finished 'Dev' after 3.3 μs
  </code></pre>
  
  <p>How do I get that correct output in Visual Studio?</p>