Hi,
I wonder whether it’s possible to change the encoding of the emails, sent by MT (comment notification etc.).
Standard email encoding seems to be ISO-8859-1, which corrupts all non-Latin symbols, making the texts look like this: ???????? . What I need is Unicode UTF-8.
That’s strange a bit because all html pages are generated in utf-8.
Thank you! sash
Reported on Movable Type 4.2
You to add a MailEncoding directive in your mt-config.cgi see http://www.movabletype.org/documentation/appendices/config-directives/mailencoding.html
Rob, than you!
I've changed that, but it keeps sending in ISO-8859-1. I've noticed quite a mess with encoding in the templates... it could be ISO-8859-1, then utf-8 etc...
Hi Rob,
Does it look right:
MailTransfer sendmail
Content-Type: text/plain; charset=UTF-8
There must be something wrong here... somewhere... Emails are still in ISO-8859-1.
sash
I think MailEncoding UTF-8 in mt-config.cgi should work. To be honest it is not something I have needed to do.
Rob,
Thank you a lot!
It's not working at the moment; having checked my DB charset, I think it's related to some template setting...
Thank you once again!
Sash
Hi,
I'd like to rase this issue once again: notwithstanding what I do, MT sends all its email notifications in ISO-8859-1.
How can I change the email notification encoding in utf-8 ?
I'm sure I'm not the only one with this issue.
Thanks,
sash
Hi,
I'd like to raise this issue once again: notwithstanding what I do, MT sends all its email notifications in ISO-8859-1.
How can I change the email notification encoding in utf-8 ?
I'm sure I'm not the only one with this issue.
Thanks,
sash
I have the same problem.
There is evidently an error in documentation, since adding Content-Type: text/plain; charset=UTF-8 just does nothing.
The Japanese MT website gives the correct directive for the Japanese language:
MailEncoding ISO-2022-JP
I've tried this directive and it works - the encoding of notification emails changes from ISO-8859-1 to ISO-2022-JP.
But when I try to use UTF-8 or KOI8-R or Windows-1251 or ISO-8859-5 the comments just won't go through. With any of these encodings in mt-config the following error appears when I click the Submit button:
Wide character in subroutine entry
Any ideas how to correct this?
I've found the solution for this problem on a Japanese website.
You'll need to edit the EncWords.pm file, found in \extlib\MIME
Find the following line (~176):
encode_base64($str, '');
Replace it with:
encode_base64(encode_utf8($str), '');
Above it, add the following line:
use Encode qw(encode_utf8);
(I've added this immediately after the comment "# Private: used by encode_mimeword() to encode "B" encoding" two lines above)
Now you can add
MailEncoding UTF-8
in your mt-config.cgi
Hope, the Japanese development team is aware of this issue and will fix it in a new release.