title: How to set the encoding in a TableView
body: <p>my TableView doesn't show the german <em>Umlaut</em> like <strong>ä ö ü</strong> although
  my console shows me the right characters for Düsseldorf, Köln, München, etc.</p>
  
  <p>Do I have to set a charset or the like in a tableView?</p>
  
  <p><a href="https://i.stack.imgur.com/JNstq.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JNstq.jpg" alt="screenshot"></a></p>
  
  <p>Here is an example</p>
  
  <pre><code>TableColumn&lt;TextData, String&gt; column;
  TableView&lt;TextData&gt; table;
  ObservableList&lt;TextData&gt; data = FXCollections.observableArrayList();
  
  ...
  ...
  //part of main code
  Task&lt;ObservableList&lt;TextData&gt;&gt; task = new Task() {
  
  @Override
  protected Object call() throws Exception {  
  
      IOFileOperations io = new IOFileOperations(fileName); 
      data = io.getData(); 
      colNumSize=io.getNumberOfColumns(); 
  
      Platform.runLater(new Runnable() {
  
          @Override
              public void run() {
  
                  for(int i=0;i&lt;colNumSize;i++) {
                      final int x=i; 
                      column = new TableColumn&lt;&gt;("["+x+"]");  
                      //populate the columns with data
                      column.setCellValueFactory(cellData -&gt; cellData.getValue().dataProperty(x));                             
                      table.getColumns().add(column);
                  }   
              table.setItems(data);   
              }           
          });
          return null;
      }
  };
  new Thread(task).start();
  
  //method getData in class IOFileOperations
   public ObservableList&lt;TextData&gt; getData() {
      int numRow=results.length; //&lt;-results a string of Array (String [][] results)
      int numCol=results[0].length;
      for(int i=0;i&lt;numRow;i++) list.add(new TextData(i,numCol, results));   
      return list;
  }
  
  //class TextData
  public class TextData {
  
      public StringProperty [] dataValue; 
  
      public TextData(int row, int numCol, String loadedText [][]) {
          this.dataValue = new StringProperty[numCol];
          for(int i=0;i&lt;numCol;i++) dataValue[i] = new SimpleStringProperty(loadedText[row][i]);
      }
  }  
  </code></pre>