I'm using this code to write to the file:
try(BufferedWriter bw = Files.newBufferedWriter(caminho, formato)){
bw.write("frase teste\n");
bw.write("outra coisa");
}catch(IOException e) {
e.printStackTrace();
}
But it does not recognize the character. How do I solve it?