PowerShellでファイルを「Shift_JIS」にエンコードして出力してみる。。。
これが一番単純で簡単かな?
例)
Get-Content "C:test\test1.txt" | Set-Content "C:test\test2.txt" -Encoding String -Force
※Get-ContentのほうもEncodingオプションつけれるから、状況に応じて・・・
それに、エンコードは他にも方法はあるし・・・、状況に応じて・・・
PowerShellの Out-File と Set-Content あるいは Out-File -Append と Add-Content の違い - tech.guitarrapc.cóm