Thread Mail header decodieren: alternative zu Encode::decode (9 answers)
Opened by FReAK La Marsch at 2004-05-30 04:15

esskar
 2004-05-30 22:27
#2618 #2618
User since
2003-08-04
7321 Artikel
ModeratorIn

user image
zum decodieren des subjects, würde ich folgendes nehmen

Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
use MIME::WordDecoder;

sub decode_words
{
my $value = shift;
my $wd = default MIME::WordDecoder;

$wd->handler("WINDOWS-1251" => "KEEP");
$wd->handler("BIG5" => "KEEP");

return ($value ? $wd->decode($value) : "");
}

View full thread Mail header decodieren: alternative zu Encode::decode