Change-Id: I36a56c12dab0ba34237dd30ed44203bd1e487778
String query = "reg query " + "\"" + node + "\" /v " + key;
try {
- Process process = Runtime.getRuntime().exec(query);
-
- br = new BufferedReader(new InputStreamReader(process.getInputStream(), System.getProperty("file.encoding")));
+ Process process = Runtime.getRuntime().exec(query);
+ String encoding = System.getProperty("sun.jnu.encoding");
+ br = new BufferedReader(new InputStreamReader(process.getInputStream(), encoding));
String line = null;
while((line = br.readLine()) != null) {