Defined charset when reading process output
@@ -16,6 +16,7 @@ import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
+import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
@@ -72,7 +73,7 @@ public class CommandRunner {
}
private String printStream(final InputStream inputStream, final boolean runQuietly, final boolean error) {
- final BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(inputStream));
+ final BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(inputStream, StandardCharsets.UTF_8));
final StringBuilder stringBuilder = new StringBuilder();
String line;
