I have a problem with chcp 65001
command in Windows shell.
I need to generate a list of files in a folder. So I ran cmd.exe, typed
cd folder
In Windows, make sure that file format of the actual file is same as codepage of the console (cmd.exe). Swedish characters åäö are used commonly.
In editor (in this case) Notepad++ hit "Encode>Convert to ANSI"
In script (batchfile) run same codepage as the file (Microsoft's 1252 ANSI version), File:
chcp 1252
cd c:\My Folder\Filename_with_åäö-characters.txt
Now it should work.