FAQ
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?òàù+èì'_0987654321_\?= =?ISO-8859-1?Q?
_é*§°ç;:__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.

Search Discussions

  • Marc 'BlackJack' Rintsch at Jan 12, 2009 at 1:06 pm

    On Mon, 12 Jan 2009 04:32:35 -0800, Andrea Reginato wrote:

    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?òàù+èì'_0987654321_\?= =?ISO-8859-1?Q?
    _é*§°ç;:__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.
    Look into the `email` package in the standard library.

    Ciao,
    Marc 'BlackJack' Rintsch
  • Andrea Reginato at Jan 12, 2009 at 4:47 pm

    On Jan 12, 2:06?pm, Marc 'BlackJack' Rintsch wrote:
    On Mon, 12 Jan 2009 04:32:35 -0800, Andrea Reginato wrote:
    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?òàù+èì'_0987654321_\?= =?ISO-8859-1?Q?
    _é*§°ç;:__test_chars?>
    I tried to use the string.decode(ISO-8859-1) function, but nothing
    change.
    Look into the `email` package in the standard library.

    Ciao,
    ? ? ? ? Marc 'BlackJack' Rintsch

    I tried to look at it, but nothing to do, sorry.
    I used email.Utils.decode_rfc2231(msg['Subject']) that seems what I
    need (I could be wrong, but it looks the closer at what I need) but it
    do not work out. I'm searching into the library, I'm not able to get
    the solution.

    Thanks again for your time

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppython-list @
categoriespython
postedJan 12, '09 at 12:32p
activeJan 12, '09 at 4:47p
posts3
users2
websitepython.org

People

Translate

site design / logo © 2022 Grokbase