From fb7e2b6a0caccd47135a7fec074d90659fdbe928 Mon Sep 17 00:00:00 2001 From: jackie-pc <136611113+jackie-pc@users.noreply.github.com> Date: Tue, 1 Aug 2023 12:13:50 -0700 Subject: [PATCH] try windows encoding fix (#1491) --- .github/workflows/integration_tests.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/integration_tests.yml b/.github/workflows/integration_tests.yml index efc8cdaa6..02140c922 100644 --- a/.github/workflows/integration_tests.yml +++ b/.github/workflows/integration_tests.yml @@ -17,6 +17,14 @@ defaults: run: shell: bash +env: + # Windows CI would fail without this. + # Ref: https://gist.github.com/NodeJSmith/e7e37f2d3f162456869f015f842bcf15 + # TODO: can we fix windows encoding natively within reflex? Bug above can hit real users too (less common, but possible) + # - Catch encoding errors when printing logs + # - Best effort print lines that contain illegal chars (map to some default char, etc.) + PYTHONIOENCODING: "utf8" + jobs: example-counter: strategy: