Skip to the content.

GitLab CI中文乱码解决方案

2018-07-11

使用GitLab CI构建dotnet core项目时,因为Windows环境控制台输出有中文,在GitLab查看Job运行结果时中文内容是乱码。通过chcp改变代码页为65001可以解决乱码问题。

build:
  stage: build
  script:
    - chcp 65001
    - dotnet test