Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not support Unicode data #12

Open
sergey-s-betke opened this issue Oct 25, 2021 · 2 comments
Open

Does not support Unicode data #12

sergey-s-betke opened this issue Oct 25, 2021 · 2 comments

Comments

@sergey-s-betke
Copy link

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 added a commit that referenced this issue Oct 28, 2021
@ebekker
Copy link
Member

ebekker commented Oct 28, 2021

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
Copy link
Author

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:

  • replace [System.IO.StreamWriter]::new by [System.IO.StreamWriter]::new with encoding (utf8)
  • replace [System.IO.File]::ReadAllText by [System.IO.File]::ReadAllText with encoding (utf8, with BOM!)
  • replace Export-Clixml by Export-Clixml with encoding (utf8, with BOM!)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants