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

powershell plugin with pswh cannot read korean in script

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • powershell-plugin
    • None
    • Jenkins : 2.440.3
      Powershell Plugin : 2.1
      OS : Windows Server 2019 Standard
      Java : openjdk 11 2018-09-25

      Powershell plugin with pswh cannot read Korean in script.

      I modified plugin config like below for using powershell 7.

      ```

      <?xml version='1.1' encoding='UTF-8'?>
      <hudson.plugins.powershell.PowerShellInstallation_-DescriptorImpl plugin="powershell@1.7">
        <installations class="hudson.plugins.powershell.PowerShellInstallation-array">
          <hudson.plugins.powershell.PowerShellInstallation>
            <name>DefaultWindows</name>
            <home>pwsh.exe</home>
            <properties/>
          </hudson.plugins.powershell.PowerShellInstallation>
          <hudson.plugins.powershell.PowerShellInstallation>
            <name>DefaultLinux</name>
            <home>pwsh</home>
            <properties/>
          </hudson.plugins.powershell.PowerShellInstallation>
        </installations>
      </hudson.plugins.powershell.PowerShellInstallation_-DescriptorImpl>

      ```

       

      This is my test powershell script.

      ```powershell

      $PSVersionTable

      Write-Host '안녕하세요'

      ```

       

      When I execute it on cmd, it prints Korean well.

       

      But in Jenkins Powershell Plugin, it is changed into ????.

       

      please give your warm advice.

            froque Filipe Roque
            tea0y Park
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: