You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This should imply charset: UTF8 and the appropriate value for Content-Encoding-Type:
Unless the _charset parameter is explicitly set to None, the MIMEText object created will have both a Content-Type header with a charset parameter, and a Content-Transfer-Encoding header.
No big deal, but I really don't understand why the first code example doesn't work.
The text was updated successfully, but these errors were encountered:
bartkl
changed the title
MIMEText instead of MIMEBase should be better for XML: why doesn't the encoding work?
MIMEText instead of MIMEBase should be better for XML: why doesn't the encoding work?
Nov 1, 2018
Ideally:
This should imply
charset: UTF8
and the appropriate value forContent-Encoding-Type
:(https://docs.python.org/2.7/library/email.mime.html)
For some reason though, even the most trivial of strings get encoded in base64, and the charset parameter is not set.
So, for now I'm doing it manually:
No big deal, but I really don't understand why the first code example doesn't work.
The text was updated successfully, but these errors were encountered: