unicode fix in generated docs

This commit is contained in:
Jindra Petřík
2016-03-28 20:19:56 +02:00
parent f129a66d21
commit 79f67b19a2

View File

@@ -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;