Description

I have property file notification_params.properties, and the content is:

MESSAGE=测试
RECEIVERS=test123@example.com

I use parameterized-trigger plugin to load parameters from that file and trigger my Test_Notification job. And in my Test_Notification job, I echo these parameters that passed by parameterized-trigger. I got the wrong value of $MESSAGE. But the value of $RECEIVERS is right。

And I use enca command to check the file encoding of notification_params.properties, the result is:
Universal transformation format 8 bits; UTF-8

Attachments

Issue Links

is duplicated by

JENKINS-20651File Parameters type causes the encoding of Chinese incorrect and blocks the build

sogabe
added a comment - 2013-12-02 06:35 "Parameters from properties file" can only process properties files which contain Latin-1 or Unicode-encoded characters.
So, You have to encode your property file by using native2ascii.

Kirill Merkushev
added a comment - 2013-12-09 17:06 From java 1.6 prop-file could be in any encoding and readed by special Reader class. Java 1.6 was released in 2006 (8 years ago). Seems that now its good time to update.