JetBrains / teamcity-messages

Python Unit Test Reporting to TeamCity
https://pypi.python.org/pypi/teamcity-messages
Apache License 2.0
138 stars 81 forks source link

Problems with default encoding on Windows machines #260

Open gryznar opened 2 years ago

gryznar commented 2 years ago

Team city in my case is running on Windows machine which has default encoding set to cp852. The problem is that current behaviour: image does not have any protection against exception in encoding. I am using pytest and I get this error: image

I see few possible solutions:

  1. Command line argument specifying encoding
  2. try excpet block in which firstly is handled default encoding and if it fails -> utf-8