如何将 Jenkins 中的编码设置为 UTF-8 [英] How set encodings in Jenkins to UTF-8
问题描述
控制台输出中的西里尔符号未正确显示.Jenkins 在 Windows 7 上通过 Tomcat/8.5.11 运行
Jenkins 属性显示:
file.encoding Cp1251
sun.jnu.encoding Cp1251
sun.stderr.encoding cp866
sun.stdout.encoding cp866
Cyrillic symbols in the Console output are not displayed correctly.
Jenkins is running through Tomcat / 8.5.11 on Windows 7
The Jenkins property displays:
file.encoding Cp1251
sun.jnu.encoding Cp1251
sun.stderr.encoding cp866
sun.stdout.encoding cp866
如何在 Jenkins 中设置 UTF-8 编码? 自动测试代码中的编码是 UTF-8.
这是西里尔文文本中的示例问题
_максимум_РёРЅС„РWSрмации
How can I set the encoding on UTF-8 in Jenkins? Encoding in autotest code is UTF-8.
It is example problem in Cyrillic text
_максимум_информации
已解决:我在 bin 文件夹中创建了文件 setenv.bat 并设置了 JAVA_OPTS="-Dfile.encoding=UTF-8"
SOLVED: I created file setenv.bat in bin folder and set JAVA_OPTS="-Dfile.encoding=UTF-8"
推荐答案
我在 bin 文件夹中创建了文件 setenv.bat 并设置了 JAVA_OPTS="-Dfile.encoding=UTF-8"
I created file setenv.bat in bin folder and set JAVA_OPTS="-Dfile.encoding=UTF-8"
这篇关于如何将 Jenkins 中的编码设置为 UTF-8的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!