views:

27

answers:

1

I have a batch file with a single line in it:

src/Filé.txt

When I run the batch file (either in the command prompt or by clicking it in Windows Explorer), I get the following:

C:>src\FilΘ.txt

'src\FilΘ.txt' is not recognized as an internal or external command, operable program or batch file.

It turned my é into an Θ! I've also had it turn into an 8 on another occasion.

The file I'm trying to access does actually exist. Further, if I try it on a simpler file name (file.txt) it opens it without any problems. I'm running Windows 7 64 bit. Any idea what's going on here?

+3  A: 

This is related to the code page used by the command prompt. This link has related discussion.

Raghuram
This is what I was looking for. Now my batch file first executes `chcp 1252`, opens the file, then switches back to the default using `chcp 437`.
Secret Agent Man
Actually, it looks like I don't need to reset the active code page at the end, as it seems to reset by default after the current console window closes.
Secret Agent Man