0
|
1 --TEST--
|
|
2 Bug #3513 Support of RFC2231 in header fields. (UTF-8)
|
|
3 --SKIPIF--
|
|
4 --FILE--
|
|
5 <?php
|
|
6 require_once('Mail/mime.php');
|
|
7
|
|
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');
|
|
11
|
|
12 $content = $Mime->get();
|
|
13 $content = str_replace("\n", '', $content);
|
|
14
|
|
15 if (preg_match_all('/filename([^\s]+)/i', $content, $matches)) {
|
|
16 echo implode("\n", $matches[1]);
|
|
17 }
|
|
18
|
|
19 --EXPECT--
|
|
20 *0*=UTF-8'de'S%C3%BCper%20gr%C3%B6se%20tolle%20tolle%20gr%C3%BC;
|
|
21 *1*=%C3%9Fe.txt;
|