Commit c7d5e49e authored by Rémi Cardona's avatar Rémi Cardona
Browse files

[entities] pass unicode to UMessage.message_from_string

parent 1a9ae750647f
......@@ -87,8 +87,7 @@ class Email(AnyEntity):
headers = self.lines_rgx.sub('', self.headers)
headers = self.clength_rgx.sub('', headers)
headers = self.ctype_rgx.sub('Content-type: text/plain; charset=utf8', headers)
headers = headers.encode('utf8')
return umessage.message_from_string(headers + '\n\n')
return umessage.message_from_string(headers + u'\n\n')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment