title: error in java code for accessing files with swedish characters on linux
body: <p>I have written the following java code in unix to access a file having Swedish characters in its file name.</p>
  
  <pre><code>System.out.println(System.getProperty("file.encoding"));
  System.out.println(System.getProperty("sun.jnu.encoding"));
  
  String filePath = "/tmp/newöäåå.txt";
  System.out.println("File Path" + filePath);
  
  File file = new File(filePath);
  try {
      if(file.exists())
          System.out.println("length: " + file.length());
      else{
          System.out.println("file not found");
      }
  } catch (Exception e) {
      System.out.println("inside exception");
  }
  </code></pre>
  
  <p>Output : </p>
  
  <pre><code>UTF-8
  UTF-8
  File Path /tmp/newÃ¶Ã¤Ã¥Ã¥.txt
  file not found
  </code></pre>
  
  <p>I have created the the file through unix only. Can you help me understand what must be going wrong? </p>
  
  <p>The operating system is Open SUSE </p>