Hello
I have a zend framework based website with options for English and Japanese
languages. Both languages work as expected in the website. There is a
feature to send emails that also works well except for the Japanese chars
appear garbled in the email client program. Below is a 'simplified copy' of
the code I am using to send the emails. 
Any help or suggestion is much appreciated. 
Andres

$gt   = new Zend_Translate("gettext", "languages/jp.mo")
$mail = new Zend_Mail("UTF-8");

$mail->setFrom("[EMAIL PROTECTED]", "Website name");
$mail->addTo("[EMAIL PROTECTED]", "Name");
$mail->setSubject($gt->_("Email subject"));

$body = sprintf("<h1>%s</h1><p>%s</p>",
                          $gt->_("Hello"),
                          $gt->_("More text here... Japanese translation"));

$mail->setBodyHtml($body,"UTF-8");
$mail->send();

Notes: 
1) I do not think there is a problem with the jp.mo file as everything in
the website (Japanese version included) is working ok. 
2) When used in English, the emails look perfect.


-- 
View this message in context: 
http://www.nabble.com/Problem-with-Zend_Mail-and-Japanese-tf4052746s16154.html#a11511581
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to