Skip to content

Commit

Permalink
Encode not decode #4
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Jung committed Jun 15, 2016
1 parent 3f87f84 commit 8264124
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eml_parser/eml_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def ad(string):
try:
return string.decode('latin-1').encode('utf-8')
except:
return string.decode('utf-8', replace)
return string.encode('utf-8', replace)


def traverse_multipart(msg, counter=0, include_attachment_data=False):
Expand Down

0 comments on commit 8264124

Please sign in to comment.