I have a file saved as UCS-2 Little Endian I want to change the encoding so I ran the following code:
cat tmp.log -encoding UTF8 > new.log
load content from xml file with encoding.
(Get-Content -Encoding UTF8 $fileName)