I have a directory with a file with some unusual characters in its name, a simple dir command returns the correct filename:
> dir /b
ćłńó.txt
I have a very simple for loop running in a command prompt. However, for some reason the for loop is returning a filename with similar but different characters:
> for /f "delims=" %F in ('dir /b') do echo %F
clnó.txt
Obviously this is not the desired result.
How do I fix this?