nknganda / django-mailer

Automatically exported from code.google.com/p/django-mailer
MIT License
0 stars 0 forks source link

A possible workarround a problem with utf8 #4

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
As explained in 
http://sourceforge.net/tracker/index.php?func=detail&aid=2001850&group_id=22307&
atid=374932

There is a bug in python-mysql backend which prevents us to use
django-mailer to send emails with special charcodes.

To improve it, we should add the following line on __init__.py#12:

    message = unicode(message)

Original issue reported on code.google.com by rober...@gmail.com on 16 Jul 2008 at 4:34

GoogleCodeExporter commented 8 years ago
Big thanks Robert!
This is exactly what I search for.
I have tried to send notifications in Czech and got unicode-decode errors.
This patch helped me great.

Original comment by vova.ser...@gmail.com on 9 Jan 2009 at 3:00