Process process=new ProcessBuilder(command).start();
InputStream in=process.getInputStream();
BufferedReader br=new BufferedReader(new InputStreamReader(in,"gbk"));
一定要设置成gbk,
之前设置成utf-8,结果出现乱码。
换成gbk就没问题了。
Process process=new ProcessBuilder(command).start();
InputStream in=process.getInputStream();
BufferedReader br=new BufferedReader(new InputStreamReader(in,"gbk"));