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.
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 (