Skip to content

Commit

Permalink
Fix encoding of redmine usernames
Browse files Browse the repository at this point in the history
Encode usernames in labels of user_* graphs using 8859-1 encoding
as Munin expects.

Refer also to saily#2.
  • Loading branch information
mikini committed Oct 26, 2017
1 parent 4aee511 commit 8c25b6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions redmine_stat.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ def config(self):

def row(item):
print "_v%s.label %s %s" % (item[3],
unicode(item[1]).encode("utf-8"),
unicode(item[2]).encode("utf-8"))
unicode(item[1]).encode("iso-8859-1"),
unicode(item[2]).encode("iso-8859-1"))
print "_v%s.draw AREASTACK" % (item[3])

self._result(row)
Expand Down

0 comments on commit 8c25b6f

Please sign in to comment.