Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

hello
i am writing an emailclient
and i communicate in multiple natural languages

i use the Net::POP3 module to retrieve messages from the server
and write each message as a textfile on my harddisk

but when i receive for example a message in french :
"la leçon étendue et créée"
in my textfile it appears as:
"la le=E7on =E9tendue et cr=E9=E9e"

how can i use the right encoding ?

thank you
scoy

Replies are listed 'Best First'.
Re: encoding text
by samtregar (Abbot) on May 31, 2006 at 21:17 UTC
    That looks like quoted-printable to me, which is a common encoding for email. You can use MIME::QuotedPrint to decode this text, although you may not want to use it directly. It might be better to use MIME::Parser on the whole message which should decode the text automatically.

    -sam