1--TEST--
2Bug #3513   Support of RFC2231 in header fields. (ISO-8859-1)
3--SKIPIF--
4--FILE--
5<?php
6require_once('Mail/mime.php');
7
8$test = "F��b�r.txt";
9$Mime = new Mail_Mime();
10$Mime->addAttachment('testfile',"text/plain", $test, FALSE, 'base64', 'attachment', 'ISO-8859-1');
11
12$content = $Mime->get();
13$content = str_replace("\n", '', $content);
14
15if (preg_match('/filename([^\s]+)/i', $content, $matches)) {
16    echo $matches[1];
17}
18
19--EXPECT--
20*=ISO-8859-1''F%F3%F3b%E6r.txt;
21