Closed (fixed)
Project:
Printer, email and PDF versions
Version:
6.x-1.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Feb 2009 at 08:38 UTC
Updated:
12 Mar 2012 at 11:35 UTC
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
Comment #1
jcnventuraWell, my site is partially in Portuguese, and I receive stuff just fine.. Maybe your e-mail reader doesn't undertand UTF-8?
João
Comment #2
clems commentedThanks 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.
Comment #3
jcnventuraMy Gmail shows the accented characters just fine also..
Are you willing to send me an e-mail with those accented letters?
João
Comment #4
clems commentedWell 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.
Comment #5
clems commentedok 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.
Comment #6
jcnventuraPas de problème!
João
Comment #7
slucas commentedHello,
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?