jenkinsci / jenkinsci/durable-task-plugin
[JENKINS-66731] Pipeline Nodes and Processes: PowerShell Core Script UTF-8 encoding doesn't seem to work
- Dominant language
- Java
- Stars
- 30
- Forks
- 101
- PR merge metrics
- No merged PRs in 30d
Description
Unicode doesn't render properly. Come back as � character. When running a python script that queries the environment, the encoding comes back as encoding='cp1252'.
I think I'm explicitly saying to use UTF-8 in the pipeline also I think PowerShell Core is using UTF-8 by default.
pwsh(encoding: 'UTF-8',
label: 'runscript',
script: '''''')
master and nodes have are using the -Dfile.encoding=UTF-8 JAVA Tool Options.
---
Originally reported by jumpingmule, imported from: Pipeline Nodes and Processes: PowerShell Core Script UTF-8 encoding doesn't seem to work
Raw content of original issue
Unicode doesn't render properly. Come back as � character. When running a python script that queries the environment, the encoding comes back as encoding='cp1252'.
I think I'm explicitly saying to use UTF-8 in the pipeline also I think PowerShell Core is using UTF-8 by default.
pwsh(encoding: 'UTF-8',
label: 'runscript',
script: '''''')master and nodes have are using the -Dfile.encoding=UTF-8 JAVA Tool Options.
- environment:
Jenkins 2.303.1, Pipeline Nodes and Processes 2.40 Linux hosted Jenkins, Windows 10 Node.
Contributor guide
Assessment
This issue has not been assessed yet.