是否可以使用Windows的命令行cmd.exe
保存为UTF8编码的文本文件
目前,我正在使用命令重定向操作符创建文本文件:
C:\Windows\system32\ipconfig /all >> output.log
我从>
开始获取一个新文件,然后使用>>
追加更多信息。
发布于 2013-08-07 02:39:26
命令提示符的默认编码为Windows-1252。首先将代码页(chcp命令)更改为65001 (UTF-8),然后运行您的命令。
chcp 65001
C:\Windows\system32\ipconfig /all >> output.log
完成后将其更改回默认设置。
chcp 1252
https://stackoverflow.com/questions/16598785
复制相似问题