From 9d3ec6cd7b88c31892915942e3e24d63c526593f Mon Sep 17 00:00:00 2001 From: MohZhuang <1917703871@qq.com> Date: Mon, 21 Sep 2026 14:34:41 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E5=BC=BA=E5=88=B6=20PYTHONUTF8=3D1?= =?UTF-8?q?=EF=BC=8C=E4=BF=AE=E5=A4=8D=20Windows=20runner=20=E7=AE=A1?= =?UTF-8?q?=E9=81=93=20cp1252=20=E7=BC=96=E7=A0=81=E5=B4=A9=E6=BA=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 68f5125..209db96 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,6 +7,11 @@ on: branches: [main] workflow_dispatch: +# Windows runner 的管道默认编码是 cp1252,脚本输出 ✓ 等字符会直接 UnicodeEncodeError。 +# 全局强制 UTF-8:ubuntu 上无感,windows 上是生死线。 +env: + PYTHONUTF8: "1" + # 每个分支只关心最新一次运行;被取代的自动取消。 concurrency: group: ${{ github.workflow }}-${{ github.ref }}