title: ISO 8859-1 Encoding of files printed in Java program
body: <p>I write a program that implements a file structure, the program prints out a product file based on the structure. Product names include letters Æ, Ø and Å. These letters are not displayed correctly in the output file. I use </p>
  
  <pre><code>PrintWriter printer = new PrintWriter(new FileOutputStream(new File("products.txt")));
  </code></pre>
  
  <p>IS0 8859 - 1 or Windows ANSI (CP 1252) is the character sets that the implementation requiers.</p>