jenkinsci / jenkinsci/durable-task-plugin

[JENKINS-66731] Pipeline Nodes and Processes: PowerShell Core Script UTF-8 encoding doesn't seem to work

Open
#483 3 comments 0 reactions 0 assignees View on GitHub
component:durable-task-plugin imported-jira-issue priority:minor resolution:unresolved
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


  • status: Open
  • priority: Minor
  • component(s): durable-task-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 3
  • imported: 2025-12-09

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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.