Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: Decoding UTF-8 charset in an .EML file (RTFBP)

by japhy (Canon)
on Nov 15, 2006 at 17:26 UTC ( #584224=note: print w/replies, xml ) Need Help??


in reply to Re: Decoding UTF-8 charset in an .EML file (RTFBP)
in thread Decoding UTF-8 charset in an .EML file

Have I been absent from the Monastery for too long?
  • I have tried no code, because I don't know what modules are appropriate for the conversion task. If you'll re-read my post, that's the question I asked: "What tools are necessary to do this?"
  • I have supplied sample data and stated my goal.
  • This is not homework, this is a task for a co-worker. He is not a Perl programmer, but Perl seems to be an appropriate tool to get this done. However, I have never had to deal with this sort of process before and need a starting point.
I'm not sure if the "Sarcasm..." is your signature or if it was attached specifically to your reply.

Jeff japhy Pinyan, P.L., P.M., P.O.D, X.S.: Perl, regex, and perl hacker
How can we ever be the sold short or the cheated, we who for every service have long ago been overpaid? ~~ Meister Eckhart
  • Comment on Re^2: Decoding UTF-8 charset in an .EML file (RTFBP)

Replies are listed 'Best First'.
Re^3: Decoding UTF-8 charset in an .EML file (RTFBP)
by tye (Sage) on Nov 15, 2006 at 17:38 UTC

    So you're not even going to try ? I mean, I got it on the first guess.

    (note the (unmodified) sig) I thought you're "lack of effort" deserved some ribbing, as did (even more so) the all-too-common response to "lack of effort" around here. Enjoy.

    - tye        

      If I had recognized the encoding as Base-64, I would have investigated it as such. As it stands, I had no idea what the encoding was (I thought it was some UTF-specific shenanigans). merlyn had mentioned on #perl that any MIME reader should be able to grok it, but I have no experience with the MIME::* modules. It wasn't until I looked at MIME::Parser that I followed the trail that led me to my goal.

      Jeff japhy Pinyan, P.L., P.M., P.O.D, X.S.: Perl, regex, and perl hacker
      How can we ever be the sold short or the cheated, we who for every service have long ago been overpaid? ~~ Meister Eckhart

        I didn't recognize the encoding as base-64. I actually looked at the encoding and spent a few seconds thinking about it. At that point I noticed that it used letters of both case and digits and so I tried to think of encodings that used such. base-64 and uuencode both do that and a quick test showed that base64 worked.

        I didn't let some initial guess ("UTF-specific shenanigans") prevent me from trying to solve the problem. (: Just FYI.

        - tye        

Re^3: Decoding UTF-8 charset in an .EML file (RTFBP)
by wjw (Priest) on Nov 15, 2006 at 18:38 UTC
    Frankly, I appreciate questions like this. They sparc my curiosity, so I go learn a little something. Seems to be a lot of sarcasm aimed at folks that ask questions here recently. Some of it a little more pointed than required it seems to me.

    Anyway, thanks for the question, I learned something from it. :-)

    ...the majority is always wrong, and always the last to know about it...

      It sounds like you may have missed that most of my sarcasm was directed at those who berate people who ask questions (or seem to jump straight to "I didn't understand your question and can't believe that anyone else will" rather than waiting a little longer and seeing that they aren't actually the single most insightful person to visit the site and some people had little problem understanding the problem statement or at least tried to understand it and moved things along in a less tiring manner).

      I'm sure many get tired of what they see as "poor quality questions". I suspect that many also get tired of seeing the near-identical set of links to the same boilerplates being posted after what appears to be "no effort" to understand the question asked. I personally choose to be more forgiving of the new guys than the veterans (seems only logical). I guess I need to write a "How to not try to answer a question" node so I can link to that in future.

      I suspect that if I went back in time and posted japhy's exact node as AnonyMonk and didn't reply to it, there'd be a mostly useless reply posted rather quickly similar to what I spoofed (if not several).

      And, skipping ahead, also realize that it is all too easy to read negative emotions and taking things "seriously" into text-only communications. I didn't have any serious criticism for japhy. I found his apparent "I have no clue how to try to find this answer" amusing. Since it was japhy (who has a deserved good reputation, just in case you aren't aware), I figured the usual suspects wouldn't call him on "no effort" and found the idea of calling him on it amusing.

      As for the boilerplate posters, I only find them mildly annoying and rarely do more than roll my eyes in response. But I like attempts at jokes. It appears that a couple of people even "got" it. :)

      - tye        

        Heh - whoosh, went right over my head, tye. As "Borat" goes to show, you can get pretty outrageous without people realising that you're taking the p*ss...

        Tom Melly, tom@tomandlu.co.uk
        My apologies!! I did indeed mis-read this!! Enough said by me... :-)

        ...the majority is always wrong, and always the last to know about it...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://584224]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2022-05-20 08:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (73 votes). Check out past polls.

    Notices?