Le 27/05/2012 13:41, Gary Gregory a écrit :

@@ -62,7 +63,7 @@ public class FormatCompliance {
     }

     public void dump() {
-        dump(new PrintWriter(new OutputStreamWriter(System.out)));
+        dump(new PrintWriter(new OutputStreamWriter(System.out, 
Charset.defaultCharset())));
     }

That fixes the warning but not the real issue. Why not use UTF-8 to
get a platform independent result?

If this simply dump the data on the console I think the default encoding is a sensible choice. Otherwise this will output corrupted characters when run from the command line.


Emmanuel Bourg



Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to