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

Powershell-Plugin can not output UTF-8 to console

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • powershell-plugin
    • None
    • Windows Server 2019
      Jenkins LTS 2.303.1

      It is not possible to output UTF-8 with Powershell (6+7).

      Powershell-Plugin with pwsh 7.1:
      Write-Host "UTF-8 Sign: ✅"                            >> UTF-8 Sign: �o.

      Bash-Buildstep with pswh 7.1:
      pwsh -command "Write-Host UTF-8 Sign: ✅" >> UTF-8 Sign: ✅

      I only have a Windows Jenkins environment.
      To get UTF-8 support on Windows you must start jenkins with
      -Dfile.encoding=UTF8.

      After that other plugins output UTF-8 correctly but not the Powershell plugin.

          [JENKINS-66701] Powershell-Plugin can not output UTF-8 to console

          Martin Bauer created issue -
          Martin Bauer made changes -
          Description New: It is not possible to output UTF-8 with Powershell (6+7).

          Powershell-Plugin with pwsh 7.1:
           Write-Host "UTF-8 Sign: ✅"                            >> UTF-8 Sign: �o.

          Bash-Buildstep with pswh 7.1:
           pwsh -command "Write-Host UTF-8 Sign: ✅" >> UTF-8 Sign: ✅

          I only have a Windows Jenkins environment.
           To get UTF-8 support on Windows you must start jenkins with
           -Dfile.encoding=UTF8.

          After that other plugins output UTF-8 correctly but not the Powershell plugin.
          Environment New: Windows Server 2019
          Jenkins LTS 2.303.1
          Summary Original: UFT_8 output New: Powershell-Plugin can not output UTF-8 to console
          Mark Waite made changes -
          Link New: This issue is duplicated by JENKINS-73035 [ JENKINS-73035 ]

            froque Filipe Roque
            martinbauer Martin Bauer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: