How set encodings in Jenkins to UTF-8
27,366
Solution 1
I created file setenv.bat in bin folder and set JAVA_OPTS="-Dfile.encoding=UTF-8"
Solution 2
According to this answer: JVM property -Dfile.encoding=UTF8 or UTF-8?
You have to add this JVM setting to your Jenkins starting script (JAVA_TOOLS_OPTIONS):
-Dfile.encoding=UTF8
Comments
-
Denis Bolshakov almost 3 years
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 cp866How can I set the encoding on UTF-8 in Jenkins? Encoding in autotest code is UTF-8.
It is example problem in Cyrillic text
_максимум_информацииSOLVED: I created file setenv.bat in bin folder and set JAVA_OPTS="-Dfile.encoding=UTF-8"