I use on Windows Server 2019 scheduled job as
powershell & 'C:\Program Files\PostgreSQL\12.3-7.1C\bin\pg_dump.exe' basename > bn.bak
And after that I tried to import bn.bak on other base, but Postgre said me that
"invalid byte sequence for encoding "UTF8": 0xff"
File Util gave
Little-endian UTF-16 Unicode text, with CRLF line terminators
So, I understand that Powershell 5.1 use ">" as Out-File and use default Encoding UTF-16LE. But how can I import that file on my base? I tried this ways:
- iconv -f UTF-16LE -t UTF-8 bn.bak -o conv1.bak
- get Powershell 7.0 and use "Get-Content .\bn.bak -Encoding utf8NoBom"

But all this ways gave me same thing - all latin symbols and numbers shows normal, all Cyrillic symbols shows cracked.
Can this dump still be saved? :)