ANSI / Unicode conflict in batch file

夙愿已清 提交于 2019-12-02 08:01:09

Your problem is that cmd uses code page 850 (in the US it may be 437), type chcp to see. English Windows uses 1252 elsewhere.

GUI programs

ñ 0xf1

Console programs

ñ 0xa4

If you are on 32 bit use edit.exe (a msdos text editor). Else you can use Word and save as MSDos text.

three years late, but...

you can convert the file to ANSI "on the fly" with the type command:

...  %%a in ('type "%EnvPath%Text.txt"') do (
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!