|
@@ -19,6 +19,7 @@ import java.io.BufferedReader;
|
|
|
import java.io.IOException;
|
|
|
import java.io.InputStream;
|
|
|
import java.io.InputStreamReader;
|
|
|
+import java.io.UnsupportedEncodingException;
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
|
|
|
@@ -87,7 +88,11 @@ public class Exec {
|
|
|
public OutputBufferThread(InputStream is) {
|
|
|
this.setDaemon(true);
|
|
|
output = new ArrayList<String>();
|
|
|
- reader = new BufferedReader(new InputStreamReader(is));
|
|
|
+ try {
|
|
|
+ reader = new BufferedReader(new InputStreamReader(is, "UTF-8"));
|
|
|
+ } catch (UnsupportedEncodingException e) {
|
|
|
+ throw new RuntimeException("Unsupported encoding " + e.toString());
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
@Override
|