[issue10284] Exception raised when decoding NNTP newsgroup descriptions

Julien ÉLIE report at bugs.python.org
Tue Nov 2 23:56:23 CET 2010

Julien ÉLIE <julien at trigofacile.com> added the comment:

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

Yes, of course.  Such articles are not RFC-compliant.  You're not mistaken when you mention that the Content-Type: header field applies to the body.
I was just answering about how the encoding could be guessed.


Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list