ANSI / Unicode conflict in batch file

前端 未结 2 549
不思量自难忘°
不思量自难忘° 2021-01-25 14:15

I have some batch files that use a text file for language-independancy. Until yesterday all worked fine ... but then I began translating the standard texts to Dutch and German.

2条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-25 14:42

    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 (
    

提交回复
热议问题