2 Bug #3513 Support of RFC2231 in header fields. (UTF-8)
6 require_once('Mail/mime.php');
8 $test = "Süper gröse tolle tolle grüße.txt";
9 $Mime = new Mail_Mime();
10 $Mime->addAttachment('testfile',"text/plain", $test, FALSE, 'base64', 'attachment', 'UTF-8', 'de');
12 $content = $Mime->get();
13 $content = str_replace("\n", '', $content);
15 if (preg_match_all('/filename([^\s]+)/i', $content, $matches)) {
16 echo implode("\n", $matches[1]);
20 *0*=UTF-8'de'S%C3%BCper%20gr%C3%B6se%20tolle%20tolle%20gr%C3%BC;