-
-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to handle Unicode in message body using API #78
Comments
Hello! No problem! :) |
Ah, I found the problem. I'll submit a fix today |
Stranger6667
added a commit
that referenced
this issue
Jan 3, 2017
0.6.2 is on PyPI :) Thank you for the bug report |
@jdotjdot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sorry to be leaving you so many issues!
Looks like there's now an issue when sending messages at least with unicode characters in the body. The message I am sending usings
django.template.Template
to render a template to a string and then submit it as the message HTML body.This problem goes away if you temporarily set
sys.setdefaultencoding('utf8')
(which you obviously shouldn't be doing).Here is the traceback:
I'm currently getting around this with the following context manager, but obviously this cannot be the case long-term:
The text was updated successfully, but these errors were encountered: