批次編碼轉換

Get-ChildItem *.txt | % { Get-Content $_ | Out-File -Encoding UTF8 "$($_.basename).txt" }