title: Java CSV encoding
body: <p>I have a CSV file and i have a problem with number formats, in my java code the double's have <code>Locale loc = new Locale("hu", "HU");</code> format so in the program looks like 1 401,1 but in CSV it looks like 1Â 401,1 How can I set encoding? I'm using javacsv library</p>
  
  <pre><code>String outputFile = Calc.tf_file.getText();         
  boolean alreadyExists = new File(outputFile).exists();
  
          try {
  
              CsvWriter csvOutput = new CsvWriter(new FileWriter(outputFile, true), ';');
  
  
              if (!alreadyExists)
              {
                  csvOutput.write("Point");
                  csvOutput.write("Price");
                  csvOutput.endRecord();
              }
  
  
                          for (int i = 0; i &lt; Calc.number_list.size(); i++) {                       
                          csvOutput.write(Calc.point_list.get(i));
                          csvOutput.write(Calc.number_list.get(i));
                          csvOutput.endRecord();
                      }
  
  
              csvOutput.close();
  </code></pre>