1
I'm running windows cmd script from windows console and redirecting output to a file by mycommand.cmd > 'filename ' 2>&1
the problem is, when I'm trying to read that file using less under cygwin, it says that file may be a binary and then can't detect encoding. I can open and see file correctly if I open it through, say, notepad++, it shows that file has USC-2 (BE) encoding. Is there a way to make less
to understand file and display it correctly?