[issue33741] UnicodeEncodeError onsmtplib.login(MAIL_USER, MAIL_PASSWORD)

Lars Pötter report at bugs.python.org
Sun Jun 10 08:04:23 EDT 2018


Lars Pötter <lars at ing-poetter.de> added the comment:

I wanted to login to an existing account so the password works OK in Thunderbird.

Here in Germany it is recommended for safe passwords to use the German umlauts(ßÄÖÜäöü). So code page 437 vs 850 or UTF-8 ?

If I could pass in the bytes then I could figure out the correct encoding myself.(Try and error) I suppose that in other regions people want to use other encodings. And as long as the encoding is the same when setting the password and transmitting the password then everything is fine, right?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33741>
_______________________________________


More information about the Python-bugs-list mailing list