Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.nio.charset.Charset;

/**
* An implementation of {@link SystemStatisticsGetter} that relies on using Posix commands like ps.
Expand All @@ -45,7 +46,7 @@ private String getCommandOutput(String[] cmdArray) throws IOException {
String psOutput = null;

try {
processReader = new BufferedReader(new InputStreamReader(executable.getInputStream()));
processReader = new BufferedReader(new InputStreamReader(executable.getInputStream(), Charset.forName("UTF-8")));
psOutput = processReader.readLine();
} finally {
if (processReader != null) {
Expand Down