I have a PowerShell script. It executes exe file which produces UTF-16 output and I'm piping it into Select-String like this:
& "my.exe" | Select-String -Pattern "skipping non-regular file" -NotMatch -Encoding "utf-16"
But PowerShell reports, that the encoding is not supported.
Is there a workaround to fix this? Is UTF-16 really not supported?