I have a problem with chcp 65001 command in Windows shell.
chcp 65001
I need to generate a list of files in a folder. So I ran cmd.exe, typed
cd folder
it looks like a problem I recently met
cd folder dir /B /O:N > list_of_files.tmp cmd /U /C type list_of_files.tmp>list_of_files.txt del list_of_files.tmp