What\'s the easiest way to convert XML from UTF16 to a UTF8 encoded file?
Well, I guess the easiest way is to just not care about whether the file is XML or not and simply convert:
Get-Content file.foo -Encoding Unicode | Set-Content -Encoding UTF8 newfile.foo
This will only work for XML when there is no
line.