Skip to content

Commit

Permalink
Fix UTF8 display in html emails
Browse files Browse the repository at this point in the history
fixes #11
  • Loading branch information
ThiefMaster committed Mar 20, 2015
1 parent 476f838 commit 622bec2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion maildump/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def get_message_html(message_id):
part = db.get_message_part_html(message_id)
if not part:
return 404, 'part does not exist'
soup = bs4.BeautifulSoup(part['body'], 'html5lib')
soup = bs4.BeautifulSoup(part['body'].decode('utf-8'), 'html5lib')
_fix_cid_links(soup, message_id)
return _part_response(part, str(soup), 'utf-8')

Expand Down

0 comments on commit 622bec2

Please sign in to comment.