|Subject:||Encode::MIME::Header encoded words not separated by white space|
RFC 2047 states, in section 5.(1) "Ordinary ASCII text and 'encoded-word's may appear together in the same header field. However, an 'encoded-word' that appears in a header field defined as '*text' MUST be separated from any adjacent 'encoded-word' or 'text' by 'linear-white-space'." Similarly in subsections (2) and (3). But I get the following result: $ perl -MEncode -Mutf8 -e 'print encode("MIME-Q", "found art, objet trouvé"), "\n"' found art,=?UTF-8?Q?=20objet=20trouv=C3=A9?= The decoding is also wrong. The following example shouldn't decode anything. $ perl -MEncode -e 'binmode(STDOUT, ":utf8"); print decode("MIME-Q", "found art,=?UTF-8?Q?=20objet=20trouv=C3=A9?="), "\n"' found art, objet trouvé See section 6.1.(1) in the RFC.