De_gummed.
It was a simple log file, that was all… That was all is was supposed to be… you know… ending in .log and all.
I came across a post here that talked about powershell encocoding and noticed that when I set my command to encode in ascii that the results in the .log file somehow came out in Chinese. (WTF!) so I messed around and researched with encoding a bit more and then changed my .log file to a .txt file and now there is a better expectation of what the text going in and coming out will be… I had always scoffed at bigendian and littleendian… but after having been bitten for a day on “encoding”… I will find a new thing to scoff.
I changed the file type to .txt and made sure that powershell was encoded UTF8
"My log message" | Out-file $logFilePath -encoding UTF8 -append
so long … on such a small thing…