- Tested with Python 3.11, no specific packages were used
Before running script ensure that python output is UTF-8 by setting environment variable. E.g. in powershell:it seems working now with internal encoding into utf-8
$env:PYTHONIOENCODING = 'utf-8'
- Run script with providing a path to source MSI log:
python check-installer-time.py "C:\Users\deitry\Downloads\MSI.log" | Out-File MSI-parsed.log -Encoding oem
Please note that Out-File -Encoding ..
part is necessary to keep correct encoding in file. For some reason default utf-8 in pwsh generates erroneous symbols