X-Git-Url: http://jaekl.net/gitweb/?p=cfb.git;a=blobdiff_plain;f=prod%2Fnet%2Fjaekl%2Fcfb%2FCFB.java;h=c088ca8d818aa3fa6574302e54129b275f51eb84;hp=178dc2fe139b686a417b2d7c96fdb5a7088608a0;hb=ef716e43b9cb65bfd20f92f16ed0e78b877e2fee;hpb=d7eb22d6c6f1869f42e53c1ea05b17463a0e7b12 diff --git a/prod/net/jaekl/cfb/CFB.java b/prod/net/jaekl/cfb/CFB.java index 178dc2f..c088ca8 100644 --- a/prod/net/jaekl/cfb/CFB.java +++ b/prod/net/jaekl/cfb/CFB.java @@ -9,7 +9,9 @@ package net.jaekl.cfb; import java.io.File; import java.io.IOException; +import java.io.OutputStreamWriter; import java.io.PrintWriter; +import java.nio.charset.Charset; import java.sql.Connection; import java.sql.SQLException; import java.text.MessageFormat; @@ -246,7 +248,7 @@ public class CFB { public static void main(String[] args) { CFB cfb = new CFB(Locale.getDefault()); - try (PrintWriter pw = new PrintWriter(System.out)){ + try (PrintWriter pw = new PrintWriter(new OutputStreamWriter(System.out, Charset.defaultCharset()))) { cfb.doMain(pw, args); pw.flush(); } catch (SQLException | IOException | XmlParseException | SAXException | TypeMismatchException exc) {