Email subject character encoding problem
Emails sent with non-roman characters in the subject become unreadable in some email clients. For example, a Japanese subject displays fine in Yahoo! UK email, but not in Yahoo! Japan. I have no idea what causes the problem, but Michal reports the same issue with his Polish translation:
"The problem is - when anybody make a comment, the notifying mail is automatically sent. The content of the mail looks great, everything is properly translated into polish but ... the subject of the mail is full of errors, which means that every specific for my language fonts, are badly displayed."
"The problem is - when anybody make a comment, the notifying mail is automatically sent. The content of the mail looks great, everything is properly translated into polish but ... the subject of the mail is full of errors, which means that every specific for my language fonts, are badly displayed."
Leave a comment
Possible fix in changeset 2196, courtesy of Michal (Polish translator).
http://my-trac.assembla.com/HotaruCMS/changeset/2196
// Fixing the subject for non-ASCII characters:
$subject = '=?UTF-8?B?'.base64_encode($subject).'?=';
I haven't tested this yet because I can't do email on WampServer.
http://my-trac.assembla.com/HotaruCMS/changeset/2196
// Fixing the subject for non-ASCII characters:
$subject = '=?UTF-8?B?'.base64_encode($subject).'?=';
I haven't tested this yet because I can't do email on WampServer.
on 2010-11-26 16:50 *
By
It seems that the fixes should be similar to what is going on in this blog post. I am gonna check when I get home.