Message120276
| 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. |
|