jenkinsci / pipeline-github-plugin

Pipeline: GitHub
https://plugins.jenkins.io/pipeline-github/
MIT License
159 stars 73 forks source link

How does one use umlauts, i.e. "äöü" with pullRequest.comment? #127

Open tkolb-recom opened 2 months ago

tkolb-recom commented 2 months ago

Describe your use-case which is not covered by existing documentation.

I just came to testing this plugin to provide some information directly within the PRs our devs create and CI is performed for.

Occasionally I ran into the issue of german umlauts not correctly display on Github. The JenkinsFile is stored es UTF-8. Agents and Master are configured with JVM option "-Dfile.encoding=UTF-8"...

image

...but on GH the comment gets to show like:

image

As this runs on Windows machines that character is somehow encoded in one of these CPxxxx but I'm unaware why. (Posting comments through the Rest API within PowerShell on the other hand however worked as expected.)

Reference any relevant documentation, other materials or issues/pull requests that can be used for inspiration.

No response

Are you interested in contributing to the documentation?

No response