This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients eric.araujo, jelie, pitrou, r.david.murray
Date 2010-11-02.22:48:19
SpamBayes Score 6.242316e-08
Marked as misclassified No
Message-id <1288738096.3541.7.camel@localhost.localdomain>
In-reply-to <1288737796.7.0.968299484534.issue10284@psf.upfronthosting.co.za>
Content
> Antoine, a news client could guess it because of the Content-Type:
> header field (in this example, it mentions charset="gb2312").
> Yet, articles without a Content-Type: header field exist in the
> wild...

Unless I'm mistaken, Content-Type should only apply to the body, not the
headers. Either the headers use UTF-8 (RFC 3977), or they should be
MIME-encoded. Everything else is undecodable.

> There is no way to always make the right guess, unfortunately.
> News clients try to do their best :-)

Well, a news client built on nntplib could also try to do its best :)

> Yes, I mean b"\xC9ric".  4 bytes.

Ok, perhaps we should allow bytes username and password.
History
Date User Action Args
2010-11-02 22:48:21pitrousetrecipients: + pitrou, eric.araujo, r.david.murray, jelie
2010-11-02 22:48:20pitroulinkissue10284 messages
2010-11-02 22:48:20pitroucreate