Ho trovato la seguente fix:
File file =newFile("C:\\test.txt");
FileWriter fw =newFileWriter(file,true);
PrintWriter pw =newPrintWriter(fw);
String test ="Address Pippo p.2 °";
ByteBuffer byteBuffer =Charset.forName("UTF-8").encode(test);
test =StandardCharsets.UTF_8.decode(byteBuffer).toString();
pw.write(test);
pw.close();
Però non ho ben capito che succede dietro le quinte.
Sai darmi una spiegazione ?