近期有部分Win11用户在果bat批处理文件中输入中文,导致出现运行.bat文件乱码的情况,对于这种情况我们应该如何解决呢?如果你也有同样的困扰,不妨来看看下面这篇小编带来的详细的解决教程吧,希望对你有所帮助哦。
解决方法:
1、运行bat批处理文件的时候,只要输出中文,就会出现乱码;

2、选中出现问题的bat批处理文件,点击右键,在打开的菜单项中,选择【显示更多选项 - 编辑】;

3、以记事本文件的方式打开bat批处理文件后,点击左上角的【文件】,在打开的下拉项中,选择【另存为】;

4、另存为窗口,编码选择【ANSI】,然后点击【保存】即可;

5、再次运行bat批处理文件,可以看到修改完编码之后,已经不会出现乱码的情况了。

本文链接:https://www.kinber.cn/post/2576.html 转载需授权!
推荐本站淘宝优惠价购买喜欢的宝贝: