EBOOZ/TeamsStatus

UTF8-Issue when reading Teams\log.txt

Opened this issue · 0 comments

When reading the logs.txt to get the $TeamsStatus variable an error may occur when the OS uses a different language that includes umlauts, for example

Mit Jan 19 2022 19:33:51 GMT+0100 (Mitteleuropäische Normalzeit) <5284> -- info -- Setting the taskbar overlay icon - 
             Verfügbar 

Can be fixed by adding -Encoding Utf8 to the $TeamsStatus = Get-Content call.