title: Garbled character output when using cout API
body: <p>I am trying to run this simple code in VS 2015</p>
  
  <pre><code>#include "stdafx.h"
  # include &lt;iostream&gt;
  
  int main()
  {
      char * szOldPath = "\"C:\icm\scripts\StartupSync\runall.bat\" nonprod"; 
      std::cout &lt;&lt; szOldPath &lt;&lt; std::endl;
  
      return 0;
  }
  </code></pre>
  
  <p>However, the output of szOldPath is not proper and the console is printing--</p>
  
  <pre><code>unall.bat" nonprodupSync
  </code></pre>
  
  <p>I suspect this might be because of Unicode and I should be using wcout. So I disabled Unicode by going to Configuration Properties -> General --> Character Set and tried setting it to Not Set or Multi Byte. But still running into this issue.</p>
  
  <p>I understand it is not good to disable UNICODE but I am trying to understand some legacy code written in our company and this experiment is a part of this exercise,is there any way I can get the cout command to print szOldPath  successfully?</p>