Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: UTF8 issue with Net::POP3

by runrig (Abbot)
on Nov 19, 2012 at 23:09 UTC ( #1004632=note: print w/replies, xml ) Need Help??


in reply to UTF8 issue with Net::POP3

use Encode (); $subject = Encode::decode('MIME-Header', $subject);

Replies are listed 'Best First'.
Re^2: UTF8 issue with Net::POP3
by chuntuk (Novice) on Nov 19, 2012 at 23:13 UTC

    That's done it - thanks. Wish the docs would mention, somewhere, that you need to do that. Everything seems to assume that once you've retrieved a message, you're done.

      Also, consider using MIME::Head to parse MIME headers.

      To be fair, the module name, Net::POP3, hints that it only does the POP3 protocol. It does not try to parse the headers or MIME attachments or anything. That's some other module's job.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1004632]
help
Chatterbox?
[Discipulus]: from txt to array, from array to polemic, from polemic to flame?
[Corion]: Discipulus++ # profound insight
[Corion]: :-D
[Discipulus]: the very same topic was discussed in CB yesterday at lunch time
[Discipulus]: or can I ask for a module to do the back conversion from flame to txt?

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (12)
As of 2017-06-23 08:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (537 votes). Check out past polls.