Skip to content
Closed
Show file tree
Hide file tree
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 @@ -149,7 +149,7 @@ private Answer executeProxyLoadScan(final Command cmd, final long proxyVmId, fin
final URLConnection conn = url.openConnection();

final InputStream is = conn.getInputStream();
final BufferedReader reader = new BufferedReader(new InputStreamReader(is));
final BufferedReader reader = new BufferedReader(new InputStreamReader(is,"UTF-8"));
final StringBuilder sb2 = new StringBuilder();
String line = null;
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public Answer executeProxyLoadScan(final Command cmd, final long proxyVmId, fina
final URLConnection conn = url.openConnection();

final InputStream is = conn.getInputStream();
final BufferedReader reader = new BufferedReader(new InputStreamReader(is));
final BufferedReader reader = new BufferedReader(new InputStreamReader(is,"UTF-8"));
final StringBuilder sb2 = new StringBuilder();
String line = null;
try {
Expand All @@ -75,4 +75,4 @@ public Answer executeProxyLoadScan(final Command cmd, final long proxyVmId, fina

return new ConsoleProxyLoadAnswer(cmd, proxyVmId, proxyVmName, success, result);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import java.io.InputStreamReader;
import java.net.URL;
import java.net.URLConnection;
import java.nio.charset.Charset;

import org.apache.log4j.Logger;

Expand Down Expand Up @@ -55,7 +54,7 @@ protected Answer executeProxyLoadScan(final Command cmd, final long proxyVmId, f
conn.setReadTimeout(5000);

final InputStream is = conn.getInputStream();
final BufferedReader reader = new BufferedReader(new InputStreamReader(is, Charset.defaultCharset()));
final BufferedReader reader = new BufferedReader(new InputStreamReader(is,"UTF-8"));
final StringBuilder sb2 = new StringBuilder();
String line = null;
try {
Expand All @@ -80,4 +79,4 @@ protected Answer executeProxyLoadScan(final Command cmd, final long proxyVmId, f

return new ConsoleProxyLoadAnswer(cmd, proxyVmId, proxyVmName, success, result);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public void doHandle(HttpExchange t) throws Exception {
Headers hds = t.getResponseHeaders();
hds.set("Content-Type", "text/plain");
t.sendResponseHeaders(200, 0);
OutputStreamWriter os = new OutputStreamWriter(t.getResponseBody());
OutputStreamWriter os = new OutputStreamWriter(t.getResponseBody(),"UTF-8");
statsCollector.getStatsReport(os);
os.close();
}
Expand Down