如何将Jenkins中的编码设置为UTF-8 [英] How set encodings in Jenkins to UTF-8
问题描述
控制台输出中的西里尔符号未正确显示。
Jenkins在Windows 7上运行Tomcat / 8.5.11
Jenkins属性显示:
file.encoding Cp1251
sun.jnu。编码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。
这是西里尔文本中的示例问题
_максимум_РёРЅСормации
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屋!