title: Batch script is not executed if chcp was called
body: <p>I'm trying to delete some files with unicode characters in them with batch script (it's a requirement). So I run cmd and execute:</p>
  
  <pre><code>&gt; chcp 65001
  </code></pre>
  
  <p>Effectively setting codepage to UTF-8. And it works:</p>
  
  <pre><code>D:\temp\1&gt;dir
   Volume in drive D has no label.
   Volume Serial Number is 8C33-61BF
  
   Directory of D:\temp\1
  
  02.02.2010  09:31    &lt;DIR&gt;          .
  02.02.2010  09:31    &lt;DIR&gt;          ..
  02.02.2010  09:32               508 1.txt
  02.02.2010  09:28                12 delete.bat
  02.02.2010  09:20                95 delete.cmd
  02.02.2010  09:13    &lt;DIR&gt;          Rún
  02.02.2010  09:13    &lt;DIR&gt;          Гуцул Каліпсо
                 3 File(s)            615 bytes
                 4 Dir(s)  11 576 438 784 bytes free
  
  D:\temp\1&gt;rmdir Rún
  
  D:\temp\1&gt;dir
   Volume in drive D has no label.
   Volume Serial Number is 8C33-61BF
  
   Directory of D:\temp\1
  
  02.02.2010  09:56    &lt;DIR&gt;          .
  02.02.2010  09:56    &lt;DIR&gt;          ..
  02.02.2010  09:32               508 1.txt
  02.02.2010  09:28                12 delete.bat
  02.02.2010  09:20                95 delete.cmd
  02.02.2010  09:13    &lt;DIR&gt;          Гуцул Каліпсо
                 3 File(s)            615 bytes
                 3 Dir(s)  11 576 438 784 bytes free
  </code></pre>
  
  <p>Then I put the same <code>rmdir</code> commands in batch script and save it in UTF-8 encoding. But when I run nothing happens, literally nothing: not even echo works from batch script in this case. Even saving script in OEM encoding does not help.</p>
  
  <p>So it seems that when I change codepage to UTF-8 in console, scripts just stop working. Does somebody know how to fix that?</p>