Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-19990

When load parameters from a properties file which file encoding is UTF-8, parameters‘ value is not right.

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • None
    • Jenkins version: 1.534
      Parameterized trigger version:2.21
      Jenkins' file.encoding: UTF-8

      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

          [JENKINS-19990] When load parameters from a properties file which file encoding is UTF-8, parameters‘ value is not right.

          Song Frank created issue -
          SCM/JIRA link daemon made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          ikedam made changes -
          Link New: This issue is duplicated by JENKINS-20651 [ JENKINS-20651 ]
          ikedam made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 151512 ] New: JNJira + In-Review [ 207027 ]

            huybrechts huybrechts
            sfeng Song Frank
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: