Accents' ^ ~ are not working in Javafx

1

Hello,

I received software that uses Javafx, and was in the development phase needing to be finalized. I'm testing it and realized that Portuguese accents, like: '^ ~ and', are not recognized in the TextField. I have already looked for the official doc and in several forums, but I did not see anything that indicated how to solve the problem. Does anyone know how to solve this problem?

* Application details: do not use fxml.

private TextField nomeField;
nome = new Label("Nome:");
nomeField = new TextField();
nomeField.setPrefSize(620.0, 27.0);

HBox dados = new HBox(20);
dados.getChildren().addAll(nome, nomeField, cadastrar);
    
asked by anonymous 06.06.2017 / 02:05

1 answer

0

Good afternoon,

In English Stack Overflow they seem to have found a solution to this in the Eclipse IDE here / a>, but I believe that logic works in any IDE.

In case the solution was to go to the 'Window > Preferences> General> Workspace' and change the 'Text file encoding' to 'UTF-8'

    
06.06.2017 / 20:33