-
Bug
-
Resolution: Unresolved
-
Minor
-
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.
- is duplicated by
-
JENKINS-73035 powershell plugin with pswh cannot read korean in script
-
- Closed
-
[JENKINS-66701] Powershell-Plugin can not output UTF-8 to console
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 |
Link |
New:
This issue is duplicated by |
I confirm this issue. The first of these unit tests fails on Windows:
I don't really know how to fix this. There is some solutions in msbuild-plugin using chcp.
https://github.com/jenkinsci/msbuild-plugin/pull/29
https://github.com/jenkinsci/msbuild-plugin/pull/32
But messing around with coding pages feels like a very bad solution. I am open to other ideas.
Here are some other jenkins issues somewhat related: