Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Commit

Permalink
Merge pull request #127 from Wattpad/dogwrap_output_encoding_issue
Browse files Browse the repository at this point in the history
dogwrap: decode process output as utf-8
  • Loading branch information
yannmh committed Feb 17, 2015
2 parents da276eb + db11d4e commit f6a3ba5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/dogshell/wrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ def main():
event_body.extend([u'notifications: %s\n' % (notifications)])

event_body.append(u'%%%\n')

# ensure all strings are parsed as utf-8
event_body = [x.decode('utf-8') for x in event_body]

event_body = u''.join(event_body)
event = {
'alert_type': alert_type,
Expand Down

0 comments on commit f6a3ba5

Please sign in to comment.