I am trying to read email with imaplib. I get this mail body:
=C4=EE=E1=F0=FB=E9 =E4=E5=ED=FC!
That is Quoted-printable
encoding.
I need to get utf-8
from this. It should be Добрый день!
I googled it, but it is too messy with Python's versions. It is already unicode in Python 3, I cann't use .encode('utf-8')
here.
How can I change this to utf-8
?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…