zyborg / pester-tests-report

GitHub Action to run Pester tests and generate report attached to Workflow Run
MIT License
40 stars 13 forks source link

Does not support Unicode data #12

Open sergey-s-betke opened 3 years ago

sergey-s-betke commented 3 years ago

Now this action ignore unicode strings (see https://github.com/test-st-petersburg/DocTemplates/runs/3995464448?check_suite_focus=true ).

Please, use UTF8 encoding on tests results processing.

ebekker commented 3 years ago

Hmm, interesting. My thinking is that this was an encoding issue with the final XML from the XSLT transformation, but I tried both UTF-8 and UTF-16 encodings and that didn't seem to have any impact: https://github.com/zyborg/pester-tests-report/runs/4036216938?check_suite_focus=true

sergey-s-betke commented 2 years ago

Hmm, interesting. My thinking is that this was an encoding issue with the final XML from the XSLT transformation, but I tried both UTF-8 and UTF-16 encodings and that didn't seem to have any impact: https://github.com/zyborg/pester-tests-report/runs/4036216938?check_suite_focus=true

Please, use [System.IO.File]::ReadAllText with encoding in second parameter. [System.IO.StreamWriter]::new without encoding create file without BOM. May be: