It happens that I'm trying to indicate the encoding in a BufferedWriter, but I can't do it, my implementation : Sonar findBug : Reliance on default encoding
BufferedWriter out = new BufferedWriter(new FileWriter(comunConstants.getRutaArchivo(),true));
I read that with Charset, but I get syntax error.
BufferedWriter out = new BufferedWriter(new FileWriter(comunConstants.getRutaArchivoRegistro(),true),Charset.defaultCharset());
what am I doing wrong?
I already solved it with : There's no reason you can't construct your BufferedWriter on top of the OutputStreamWriter though.