Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: MIME Parsing Entity not exposing charset?

by McA (Priest)
on Mar 04, 2013 at 17:32 UTC ( #1021683=note: print w/replies, xml ) Need Help??

in reply to MIME Parsing Entity not exposing charset?


(first best guess answer thrown away)

I looked at the problem a little bit deeper as I was interested in that domain knowing that I will stumble about that earlier or later.

Add the following snippet to your code:

my @parts = $entity->parts(); foreach my $part (@parts) { my $head = $part->head(); print "Effective: " . $part->effective_type() . "\n"; print "Content-Type from Header: " . $head->get('Content-Type') . +"\n"; }
and you will see that the original information is there. Why it isn't dumped with the method dump_skeleton is something different.

Best regards

Replies are listed 'Best First'.
Re^2: MIME Parsing Entity not exposing charset?
by wilsotc (Initiate) on Mar 04, 2013 at 19:09 UTC
    Thank you!!

    I had figured it out and was about to post the same thing. I believe I had found some old documentation floating around that was outdated and had to dig in to the source code.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1021683]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2018-04-26 21:31 GMT
Find Nodes?
    Voting Booth?