in reply to Problems with MIME::Lite Attachements

I guess your attachment file is in utf8 format. Try to read the data in raw format. with binmode.
my $attachment; { open my $fh, "<$filename" or die $!; binmode $fh; local $/; $attachment = <$fh>; }
Boris

Replies are listed 'Best First'.
Re^2: Problems with MIME::Lite Attachements
by BaldPenguin (Friar) on Aug 11, 2005 at 17:51 UTC
    You are correct that the data is in utf-8, but the data is generated without any file reads. The filehandle I tried was IO::Scalar.

    Don
    WHITEPAGES.COM | INC
    Everything I've learned in life can be summed up in a small perl script!