I would like to deal with filename containing strange characters, like french é.
Everything is working fine in the shell :
C:\somedir\>ren -hélice hélice
Know if I put this line in a .bat file, I obtain the following result :
C:\somedir\>ren -hÚlice hÚlice
See ? é have been replaced by Ú
The same is true for command output. If I dir
some directory in the shell, output is fine.
If I redirect this output to a file, some character are transformed.
So how can I tell cmd.exe how to interpret what appears as an é in my batch file, is really an é and not a Ú or a comma
Edit : So there is no way when executing a .bat file to give an hint about the codepage in which it was written ?