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

Pipeline can't run 'bat' when the job name contains chinese characters

      I have an pipeline job contains chinese characterss, when run the job, it hungs when launching 'bat', even restart the jenkins service.
      Every thing is ok when the job named in english.

      I looked at jenkins-wrap.bat in the durable temporary directory, the file is encoded with utf-8, maybe this caused the problem.

          [JENKINS-37036] Pipeline can't run 'bat' when the job name contains chinese characters

          Dayong Xie created issue -
          Dayong Xie made changes -
          Summary Original: Pipeline can't run 'bat' when the project name contains chinese characters New: Pipeline can't run 'bat' when the job name contains chinese characters

          Jesse Glick added a comment -

          Maybe. I cannot keep track of current Windows policy for Unicode in things like batch scripts. Likely to be very hard for me to test changes in this area.

          Jesse Glick added a comment - Maybe. I cannot keep track of current Windows policy for Unicode in things like batch scripts. Likely to be very hard for me to test changes in this area.
          Jesse Glick made changes -
          Labels Original: pipeline New: encoding pipeline
          Jesse Glick made changes -
          Labels Original: encoding pipeline New: encoding workflow
          Andrew Bayer made changes -
          Labels Original: encoding workflow New: encoding pipeline workflow
          Andrew Bayer made changes -
          Labels Original: encoding pipeline workflow New: encoding pipeline

          This also happens with nordic characters like å ä ö.

          Erik Jonsson Thorén added a comment - This also happens with nordic characters like å ä ö.

          Hi all.
          in jenkins-wrap.bat need add line^

          chcp 65001

          becose bat-file in utf-8 encoding

          Василий Казьмин added a comment - Hi all. in jenkins-wrap.bat need add line^ chcp 65001 becose bat-file in utf-8 encoding

          Also set HKCU\Console\CodePage dword value: 65001

          Василий Казьмин added a comment - Also set HKCU\Console\CodePage dword value: 65001

            jglick Jesse Glick
            dayongxie Dayong Xie
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: