martinrusev / imbox

Python IMAP for Human beings
MIT License
1.18k stars 190 forks source link

Should first get content charset then str_encode with charset. #231

Closed sangkaka closed 2 years ago

sangkaka commented 2 years ago

In some cases, using 'utf-8' to decode raw_email returned wrong content. Should first get content charset then str_encode with the charset.