in reply to Re: IMAP mail decoding - non ascii characters
in thread IMAP mail decoding - non ascii characters

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.
  • Comment on Re^2: IMAP mail decoding - non ascii characters

Replies are listed 'Best First'.
Re^3: IMAP mail decoding - non ascii characters
by ikegami (Patriarch) on Oct 28, 2008 at 20:00 UTC

    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?