解决bat脚本包含中文的错误

210 阅读1分钟

方式一

把 bat 文件保存为 ANSI 格式。

方式二

在 bat 文件顶部加入 chcp 65001

如下:

echo off
cls
chcp 65001
:: ...