Jenkins, Nightwatch console log japanese (unable to read, gabled text)

223 Views Asked by At

I use nightwatch on jenkins (windows) to make automation test. The jenkins console log do not show correct japanese. Also in command line, while running nightwatch the console log is not correct too.

1

There are 1 best solutions below

0
On BEST ANSWER

Add an environment variable in windows JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8. Restart jenkins, the console log in jenkins works correctly. I don't know how the command line console log also work correctly now. Anyway thank you so much!