mainframer
mainframer

Reputation: 22059

Jenkins email-ext plugin encoding seting for emailable-report.html

I am using email-ext plugin in my job to send the generated TestNG report via email. I have some Japanese characters in the generated emailable-report.html. My email-ext plugin config looks like this:
enter image description here

But when received the email, all the Japanese characters in the emailable-report.html report doesn't show as expected.Instead, they show like this: enter image description here

I searched google but don't find anywhere I can set the encoding. Does anybody know what the problem is?

BTW: In Manage Jenkins-->Configure System-->E-mail Notification--Charset, I've already set the value to 'utf-8'.

Upvotes: 1

Views: 2609

Answers (1)

grezgor
grezgor

Reputation: 11

Try adding -Dfile.encoding=UTF-8 to JAVA_OPTS.

Upvotes: 1

Related Questions