fixed a processing-java command encoding problem for Windows Command Prompt

This commit is contained in:
satoshiokita
2016-03-07 08:06:27 +09:00
parent 8dee3adbdd
commit 18554a12cf

View File

@@ -106,7 +106,10 @@ public class Commander implements RunnerListener {
try {
systemOut = new PrintStream(System.out, true, "UTF-8");
systemErr = new PrintStream(System.err, true, "UTF-8");
if (Platform.isWindows()) {
systemOut = new PrintStream(System.out, true);
systemErr = new PrintStream(System.err, true);
}
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
System.exit(1);