From 36cbd2cdb539db12871278e4192e91efa5d7987c Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Sat, 10 Feb 2024 20:02:34 +0100 Subject: [PATCH] Windows: Attempt to fix Unicode encoding error using `chcp` UnicodeEncodeError: 'charmap' codec can't encode character '\u2192' in position 65: character maps to --- .github/workflows/main.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3e15fc4..b3223f0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -41,7 +41,9 @@ jobs: - name: Test shell: bash - run: python -m xmlrunner discover -v -o test-results/test/ + run: | + chcp 65001 # Set code page to utf-8. + python -m xmlrunner discover -v -o test-results/test/ - name: Pycodestyle run: pycodestyle cr8