in reply to IMAP mail decoding - non ascii characters

How do you view the characters? How do you encode them first?

Update:

If you're just printing to STDOUT, you might simply need

use open ':std', ':locale';

Replies are listed 'Best First'.
Re^2: IMAP mail decoding - non ascii characters
by sumirmehta (Initiate) on Oct 28, 2008 at 15:24 UTC
    The Lotus Notes app encodes the message using base-64 content type encoding, and so while decoding i'm using the same (MIME-Base64-3.07 > MIME::Base64). The thing is this function/moudule decodes it back from base-64 to ascii character set (not mentioned clearly in the doc as to what it converts to), and hence the problem.

      You answered how Lotus Notes encodes (UTF-8, Base64).
      You answered how you decode (Base64, UTF-8).
      But my question was how do you encode what you decoded.

      decode produces strings, an opaque type. You can't output decoded strings. Only bytes can be outputted to a system file handle.

      I also asked how do you view the characters. On the console? As a web page cause you're writing a CGI app?