title: Java on Mac OS FileNotFound if path contatins non latin characters
body: <p>Good news everyone.</p>
  
  <p>I found intersted problem with java on my Mac OS.</p>
  
  <p>I put file with name from nonlatin characters to folder test, full path is <strong>/Users/dnelepov/Downloads/test/тест изображение.png</strong></p>
  
  <p><img src="https://i.stack.imgur.com/S15rT.png" alt="enter image description here"></p>
  
  <p>As u can see <strong>file exists!</strong></p>
  
  <p>Next i wrote some code to view all files on folder <strong>/Users/dnelepov/Downloads/test/</strong> and open file for read (for example):</p>
  
  <pre><code>File dirF = new File("/Users/dnelepov/Downloads/test/");
              File[] files = dirF.listFiles();
              for (File oneF : files) {
                  System.out.println("FILE:" + oneF);
                  if (oneF.exists()){
                      System.out.println("EXISTS:"+oneF);
                  }
              }
  </code></pre>
  
  <p>But next i got this:</p>
  
  <p><img src="https://i.stack.imgur.com/fDlfu.png" alt="enter image description here"></p>
  
  <p>As you can see line EXSIS: never printed, but file founded!</p>
  
  <p>Also printind system properties get:</p>
  
  <p><strong>file.encoding=UTF-8</strong></p>
  
  <p><strong>p.s.</strong></p>
  
  <p>I ask similar type question before <a href="https://stackoverflow.com/questions/16968299/java-java-io-filenotfoundexception-for-file-path-with-cyrillic-characters">Java java.io.filenotfoundexception for file path with cyrillic characters</a> - <strong>but</strong> i think this problem not for only Cyrillic characters - but for all non latin languages.</p>