title: UTF8 output instead of ISO-8859-1 java Linux
body: <p>Application (Java 1.6) runs on Linux platform and i create a file with ISO-8859-1 encoding
  like this</p>
  
  <pre><code> File localTempDir = new File(tempDir);
   String encoding = TextUtils.ISO_8859_1;
  
      try {
          String fileName = String.format(fileNameFormat, sdf.format(new Date()));
          tmpFile = File.createTempFile(fileName, "", localTempDir);
          log.info("Created file " + tmpFile.getAbsolutePath());
  
          OutputStreamWriter outputStreamWriter;
  
          if(StringUtils.isNotBlank(encoding)){
              outputStreamWriter = new OutputStreamWriter(new FileOutputStream(tmpFile), Charset.forName(encoding));
          }else{
              outputStreamWriter = new OutputStreamWriter(new FileOutputStream(tmpFile));
          }
  
          BufferedWriter out = new BufferedWriter(outputStreamWriter);
          out.write(content);
  
          log.debug("With content " + content);
          out.flush();
          out.close();
      } catch (Exception e) {
          log.error("Failed to create file", e);
      }
      return tmpFile;
  }`
  </code></pre>
  
  <p>But still get a file with UTF8 encoding. Any Ideas why?</p>