Encoding Title mail

Andrea Reginato andrea.reginato at gmail.com
Mon Jan 12 07:32:35 EST 2009


Hi to everybody, I'm trying to use libgmail version 0.1.9, to read
some mails from a google account and save the attached files. All
works fine, but when a tile has some letters with accents (like èùàòì)
I read a string like this.

=?ISO-8859-1?Q?=F2=E0=F9+=E8=EC'_0987654321_\?= =?ISO-8859-1?Q?
_=E9*=A7=B0=E7;:=5F_test_chars?=

I tried to use the string.decode(ISO-8859-1) function, but nothing
change.
I'm newbie into python, so I wanted to ask if you know how I could
solve this problem, as with a google search i didn't find the
solution.

Thanks a lot.



More information about the Python-list mailing list