jenkinsci / hipchat-plugin

HipChat notification plugin for Jenkins
https://plugins.jenkins.io/hipchat/
54 stars 85 forks source link

Issue with national characters encoding #113

Open szpak opened 6 years ago

szpak commented 6 years ago

National characters (such as "ą", "Ł") displays improperly in HitChat. Probably there is problem with keeping UTF-8 encoding.

Tested with the committer name (should be "Mączyna"):

foo-project-job #444 Build is back to normal (View build)
Henryk M��czyna <henryk.maczyna@example.com>=: 8437c61 Cool commit 

HipChat configuration on Jenkins:

$JOB_NAME #$BUILD_NUMBER $STATUS after $BUILD_DURATION (<a href="$BUILD_URL">View build</a>)
${HIPCHAT_CHANGES_OR_CAUSE} ${CHANGES,format="%m (%a)"}
szpak commented 6 years ago

I noticed that problem does not exist if I provide national characters directly in the message template (they are displayed ok). Only if it is taken from Git commit message there is a problem. Probably something with used encoding.