From ea9baac347fc2946d05bdcfb20d52ae39bb2d2c9 Mon Sep 17 00:00:00 2001 From: xuqm Date: Thu, 9 Jul 2026 14:51:55 +0800 Subject: [PATCH] ci: fix UTF-8 encoding for Chinese paths in mkdocs build --- Jenkinsfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 946f51e..60d1e06 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -16,8 +16,12 @@ pipeline { stage('Build Docs') { steps { - bat 'pip3 install mkdocs-material --quiet 2>nul || echo ok' - bat 'mkdocs build --clean --site-dir site' + bat ''' + chcp 65001 > nul + set PYTHONIOENCODING=utf-8 + pip3 install mkdocs-material --quiet 2>nul || echo ok + mkdocs build --clean --site-dir site + ''' } }