From 79f67b19a2954f5e83a8f604ef71a52ec7abeed2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Mon, 28 Mar 2016 20:19:56 +0200 Subject: [PATCH] unicode fix in generated docs --- .../decompiler/flash/console/CommandLineArgumentParser.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/com/jpexs/decompiler/flash/console/CommandLineArgumentParser.java b/src/com/jpexs/decompiler/flash/console/CommandLineArgumentParser.java index 2c3a4b8a5..ffdc86d24 100644 --- a/src/com/jpexs/decompiler/flash/console/CommandLineArgumentParser.java +++ b/src/com/jpexs/decompiler/flash/console/CommandLineArgumentParser.java @@ -159,6 +159,7 @@ import java.io.OutputStream; import java.io.PrintStream; import java.io.PrintWriter; import java.io.StringReader; +import java.io.UnsupportedEncodingException; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; @@ -2618,8 +2619,8 @@ public class CommandLineArgumentParser { outStream = System.out; } else { try { - outStream = new PrintStream(out); - } catch (FileNotFoundException ex) { + outStream = new PrintStream(out, "UTF-8"); + } catch (UnsupportedEncodingException | FileNotFoundException ex) { Logger.getLogger(CommandLineArgumentParser.class.getName()).log(Level.SEVERE, ex.getLocalizedMessage()); System.exit(1); return;