On Wednesday, 19 July 2023 at 00:13:04 UTC, Adam D Ruppe wrote:
How does the cat program know what the encoding of the file is?Try opening it in notepad or something and specifying the encoding. I betcha it is perfectly fine.
Strange. Everything works correctly on the command line. And the file redirection works and `2>&1` works. But in PowerShell it gives errors. Moreover, PowerShell reacts to `FILE_TYPE_PIPE`, and CMD reacts to `FILE_TYPE_DISK`.