且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Cmd.exe输出中文

更新时间:2022-12-29 20:42:45

就我而言,解决方案只是重新创建批处理文件和日志文件.确保您也以正确的编码格式保存文件.

In my case resolution was simply recreating both the batch file and the log file. Make sure you save the files in correct encoding format too.

经过更多调查后,我发现清除曾经使用过的日志文件(删除一些行)的脚本必须将编码更改为UCS-2 Little Endian.

After some more investigation I found out that script clearing the log file (deleting some lines) that I used once must have changed the encoding to UCS-2 Little Endian.