因为winddows下cmd 默认编码为gbk所以在
runtime.exce
后取得的数据要编码
BufferedReader bufferedReader =
new BufferedReader(
new InputStreamReader(
process.getInputStream(),"GBK")
);
要转化城gbk
哈哈哈
标签:buffere class 默认 gbk gpo win proc run log
因为winddows下cmd 默认编码为gbk所以在
runtime.exce
后取得的数据要编码
BufferedReader bufferedReader =
new BufferedReader(
new InputStreamReader(
process.getInputStream(),"GBK")
);
要转化城gbk
哈哈哈
标签:buffere class 默认 gbk gpo win proc run log
原文地址:https://www.cnblogs.com/zhangtalent/p/8494386.html