[Melbourne-pm] Decoding =?ISO-8859-1...

Nathan Bailey Nathan.Bailey at its.monash.edu
Sat Jul 19 06:18:58 PDT 2008

I know this should be trivial, but for some reason, I can't change:
=?ISO-8859-1?B?U2Nhbm5lZCBmcm9tIE1GUC0w?=  =?ISO-8859-1?B? 
MEY1NzYzMSAwNy8xNi8yMDA4?= =?ISO-8859-1?B?IDE1OjMz?=
into "Scanned from MFP-00F57631 07/16/2008 15:33"

I've tried just decoding ISO-8859-1, I've tried decoding and re- 
encoding as utf8, and I've even tried Unicode::String, but I still  
seem to end up with the same input as output.

Help? :-)

code examples:

use Encode;
$subj = encode("utf8", decode('ISO-8859-1', $subj));

use Unicode::String;
Unicode::String->stringify_as( 'utf8' );
my $string_utf8 = Unicode::String::latin1( $subj );


More information about the Melbourne-pm mailing list