Re: Email parsing and unicode/utf8

2018-10-15 Thread dieter
Thomas Jollans writes: > I just stumbled over some curious behaviour of the stdlib email parsing > APIs which accept strings rather than bytes. It appears that you can't > parse an 8-bit UTF-8 message you have as a str without first encoding it. The primary purpose of an email pa

Email parsing and unicode/utf8

2018-10-15 Thread Thomas Jollans
Hi, I just stumbled over some curious behaviour of the stdlib email parsing APIs which accept strings rather than bytes. It appears that you can't parse an 8-bit UTF-8 message you have as a str without first encoding it. The docs <https://docs.python.org/3/library/email.parser.html#fe

Re: email parsing

2008-08-27 Thread Alan Franzoni
ra9ftm was kind enough to say: > It is my first script on python. Don't know is it correctly uses > modules, but it is working fine with specially with russian code pages > and mime formated messages. Also quoted-printable and base64 > encoded Some hints: 1) don't write "x", use "

email parsing

2008-08-27 Thread ra9ftm
It is my first script on python. Don't know is it correctly uses modules, but it is working fine with specially with russian code pages and mime formated messages. Also quoted-printable and base64 encoded It will be very good if anybody post any comments on this script. Is it good or bad...