Re: UnicodeDecodeError when Unicode is used in view

2008-10-23 Thread Malcolm Tredinnick
On Thu, 2008-10-23 at 23:14 -0400, Chuck Bai2 wrote: > I have a contact form which send email. It is working fine. But when I try to > add two Unicode to subject line: > > subject = "DOMAIN.COM 留言 - %s (%s)" % (full_name,location) The string portion of this (the "DOMAIN.COM ..." bit) is not a

UnicodeDecodeError when Unicode is used in view

2008-10-23 Thread Chuck Bai2
I have a contact form which send email. It is working fine. But when I try to add two Unicode to subject line: subject = "DOMAIN.COM 留言 - %s (%s)" % (full_name,location) I got the following error message: UnicodeDecodeError at /contact_us/ 'ascii' codec can't decode byte 0xe7 in position