title: UTF-8 characters in a path to a jarfile
body: <p>I have a folder with Unicode(UTF-8) symbols in its name, for example, <strong><em>Я_Папка</em></strong>, and the folder contains <strong>foo.jar</strong>. </p>
  
  <p>Now I need to execute the foo.jar:</p>
  
  <pre><code>chcp 65001
  Active code page: 65001
  
  C:\&gt;java -Dsun.jnu.encode=UTF-8 -jar C:\Я_Папка\foo.jar
  Error: Unable to access jarfile C:\Я_Папка\foo.jar
  </code></pre>
  
  <p><strong>-Dsun.jnu.encode=UTF-8</strong> switch tells java to use UTF-8 encoding for the platform string.</p>
  
  <p><strong>-Dfile.encode=UTF-8</strong> switch can't help - it works only with the contents of files rather than the command line</p>
  
  <p>My question here - how to make <strong>-jar</strong> switch understand UTF-8 encoding?</p>