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

dogwrap: decode process output as utf-8 #127

Merged
merged 1 commit into from
Feb 17, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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