Chris Angelico <ros...@gmail.com> wrote:
> 
> Also, if you're parsing an email message, you can and should be doing
> so with respect to the encoding(s) stipulated in the headers, after
> which you will have valid Unicode text.
> 
But not all E-Mail messages are 'well behaved', the above works fine
if the headers specify the correct text encoding but quite often one
will get messages with no encoding specified and also one gets
messages with the wrong encoding specified.  One needs a way to handle
these 'rogue' messages such that most of the characters come out right.

-- 
Chris Green
ยท
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to