On Thu, Mar 4, 2010 at 11:30 PM, andrei <[email protected]> wrote:

>
> I also noticed that web.utils.sendmail doesn't take utf8 subject,
> which is bad. To send utf8 subject i do something like this:
>
> subject = "=?utf-8?B?"+ base64.b64encode(web.safestr(subj)) + "=?="
>
> is it right or can be done differently?
>

Use unicode.

web.sendmail("[email protected]", "[email protected]",
u"\u0c05\u0c06\u0c07\u0c08", u"\u0c05\u0c06\u0c07\u0c08")

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/webpy?hl=en.

Reply via email to