emails sent with this module are not using the proper character encoding (my site is in French), so that all accented letters look like gibberish, including subject line and node content. Since no one seems to have reported this as a bug, I'm guessing I'm doing something wrong. Could it be because my database is in latin1_swedish_ci?

Comments

jcnventura’s picture

Status: Active » Postponed (maintainer needs more info)

Well, my site is partially in Portuguese, and I receive stuff just fine.. Maybe your e-mail reader doesn't undertand UTF-8?

João

clems’s picture

Thanks for the answer. I may be just very ignorant about how email readers work, but the problem is this: Outlook displays the email just fine, but webmail readers such as gmail or Yahoo mail don't.

jcnventura’s picture

My Gmail shows the accented characters just fine also..

Are you willing to send me an e-mail with those accented letters?

João

clems’s picture

Well the email content is definitely Unicode (checked by pasting into Notepad++), but the problem probably lies in the email header, of which here is an excerpt:

Subject: =?iso-8859-1?Q?admin_vous_a_envoy=C3=A9_un_message_=C3=A0_partir_de_xxx?=
Message-ID: <2746424c546ebdc77dff78ecadcfaa82@localhost>
MIME-Version: 1.0
Content-Transfer-Encoding: 8Bit
Content-Type: text/html; charset="iso-8859-1"
Content-Length: 32409

I don't know why the charset isn't set to UTF-8. I noticed your code in print_mail.inc sets it to utf-8 unconditionnally. Could it be that some other module of mine is resetting it behind my back? I'm suspecting the smtp module is doing something...will check and post back later.

clems’s picture

ok the SMTP module was resetting the charset...seems like a strange idea...I just had to change the module code in class.phpmailer.php to "public $CharSet = 'utf-8';"

thanks for your time and thanks for that great module.

jcnventura’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Pas de problème!

João

slucas’s picture

Hello,

It's an old post. But I've got the same problem
the subject show =?UTF-8?B?cmVtaTEgdm91cyBhIGVudm95w6kgdW4gbWVzc2FnZSDDoCBwYXJ0aXIgZGUgRWQ=?= =?UTF-8?B?aSBQdWJsaWNpdMOp?=

I don't understand #5 solution.
I've not installed the smtp module.

I've got also problem with html entities in the body of the mail
d'Omnicom
instead of d'Omnicom

Any idea?