Skip Menu |

This queue is for tickets about the Encode CPAN distribution.

Report information
The Basics
Id: 70987
Status: resolved
Priority: 0/
Queue: Encode

People
Owner: Nobody in particular
Requestors: zby [...] cpan.org
Cc: pali [...] cpan.org
AdminCc:

Bug Information
Severity: Normal
Broken in: 2.44
Fixed in: 2.83



encode( 'MIME-Header', 'New comment in "test Новый пост"') results in New comment in "=?UTF-8?B?dGVzdCDQndC+0LLRi9C5INC/0L7RgdGC?=" But http://www.ietf.org/rfc/rfc2047.txt says: 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' that is it is incorrect that there is no whitespace between the encoded word inside the quotes and the quotes themselves, apparently the correct way to encode this would be to encode the quotes together with the rest.
Subject: quotes handled incorrectly in mail header encoding
This report is correct. The quotes should be part of the encoded-word. -- rjbs
On Štv Sep 15 09:39:19 2011, ZBY wrote: Show quoted text
> encode( 'MIME-Header', 'New comment in "test Новый пост"') > > results in > > New comment in "=?UTF-8?B?dGVzdCDQndC+0LLRi9C5INC/0L7RgdGC?=" > > But http://www.ietf.org/rfc/rfc2047.txt says: > > 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' > > that is it is incorrect that there is no whitespace between the encoded > word inside the quotes and the quotes themselves, apparently the correct > way to encode this would be to encode the quotes together with the rest.
Already fixed in Encode 2.83.