title: Running BAT/CMD file with accented characters in it
body: <p>I have a Windows batch file which has an instruction to execute an EXE file in a location whose path contains accented characters. Following are the contents of the batch file.</p>
  
  <pre><code>@echo off
  C:\español\jre\bin\java.exe -version
  </code></pre>
  
  <p>C:\español\jre\bin\java.exe - This path exists and is proper. I can run this command directly on cmd.exe. But when I run the command from a bat/cmd file it fails saying "The system cannot find the path specified"</p>
  
  <p>One way to fix this is by setting code page to 1252 (that works for me). But I'm afraid we'd have to set code pages for any non-English locale and figuring out which code page to use is pretty difficult.</p>
  
  <p>Is there an alternative approach to fix this problem? Maybe a command-line option or something else?</p>