title: How to use encoding in supercsv getHeader
body: <p>I'm using supercsv 2.1.0 to parse a CSV File with german words in it.</p>
  
  <p>The given CSV file has a header at the first line.
  In this header there are some mutated vowels like: Ä,ä, Ü,ö and so on.
  For example:
  Betrag;Währung;Info</p>
  
  <p>In my coding I'm trying to get the header of the csv like this:</p>
  
  <pre><code>ICsvBeanReader inFile = new CsvBeanReader(new InputStreamReader(new FileInputStream(file), "UTF8"), CsvPreference.EXCEL_NORTH_EUROPE_PREFERENCE);
  
  final String[] header = inFile.getHeader(true);
  </code></pre>
  
  <p>Here is my problem with the header array.
  All headers with mutated vowels are not encoded correctly using utf8 charset.</p>
  
  <p>Is there a way how I can read the header correctly?</p>
  
  <p>Here is a pseudo unit test:</p>
  
  <pre><code>public class TestSuperCSV {
  
  
  @Test
  public void test() {
      String path = "C:\\Umsatz.csv";
      File file = new File(path);
  
      try {
          ICsvBeanReader inFile = new CsvBeanReader(new InputStreamReader(
                  new FileInputStream(file), "UTF-8"),
                  CsvPreference.EXCEL_NORTH_EUROPE_PREFERENCE);
          final String[] header = inFile.getHeader(true);
          System.out.println(header[9]); //getting "W?hrung" but needed "Währung" here
  
  
      } catch (UnsupportedEncodingException | FileNotFoundException e) {
          e.printStackTrace();
      } catch (IOException e) {
          e.printStackTrace();
      }
  }
  }
  </code></pre>
  
  <p>Kind regards,
  Alex</p>