title: JavaFX Change Alert Dialog Button's text
body: <pre><code>public void PersianStandardDialog(String title,String header,String context) {
      Alert alert = new Alert(Alert.AlertType.INFORMATION);
      alert.setTitle(title);
      alert.setHeaderText(header);
      alert.setContentText(context);
  
      Scene scene = alert.getDialogPane().getScene();
      scene.setNodeOrientation(NodeOrientation.RIGHT_TO_LEFT);
      Stage standarddialogStage = (Stage) alert.getDialogPane().getScene().getWindow();
  
      Button okButton = (Button) alert.getDialogPane().lookupButton( ButtonType.OK );
      okButton.setText("Accept.");
  
      // Add a custom icon.
      standarddialogStage.getIcons().add(new Image("file:resources/images/calendar.png"));
  
      alert.showAndWait();
  }
  </code></pre>
  
  <p>Everything is OK, but When I want to use Unicode characters the result is '????' . How can I fix this problem?</p>