Subject: | Inserts an empty line in an encoded header field |
Encode::MIME::Header inserts an empty line in an encoded header
field, which is illegal as it terminates a header section.
Using Encode 2.78:
$ perl -e 'use Encode; use utf8; printf("Subject: %s\n", encode("MIME-B",
"report\n\tL_TEST_REPORT_ENCODING En-tête contient caractères\n\tend-report"))'
...produces:
Subject: report
=?UTF-8?B?CUxfVEVTVF9SRVBPUlRfRU5DT0RJTkcgRW4tdMOqdGUgY29udGllbnQgY2FyYWM=?=
=?UTF-8?B?dMOocmVz?=
end-report