Closed (duplicate)
Project:
SMTP Authentication Support
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Dec 2007 at 14:55 UTC
Updated:
11 Nov 2011 at 16:59 UTC
I am seeing scrambled characters in Invite messages. Accented characters are displayed correctly if I change Character encoding from ISO-8859 to UTF-8 in Thunderbird's View options. Mail are sent out through SMTP module. Question: Is there anything that can be done on the server side to instruct the mail reader about the encoding?
Comments
Comment #1
smk-ka commentedInvite doesn't have anything to do with email encodings, it just utilizes the standard hooks to send out emails. Passing forth to SMTP module.
Comment #2
oadaeh commentedThis seems to work correctly for me, but maybe I'm not testing it the correct way. Will you please forward an e-mail that is exhibiting the errant behavior you are speaking of?
Comment #3
skizzo commentedfor example, character ò entered in registration
welcome message is displayed as ò in Thunderbird.
I am using Gmail smtp to handle all mails for my domain.
Mail header reads:
Content-Transfer-Encoding: 8Bit
Content-Type: text/plain; charset="utf-8"
however Thunderbird comes up as Western (ISO-8859-1),
and I must manually set it to UTF-8. Maybe SMTP module has
nothing to do with that, so OP should have not be re-classified
as a bug, but I should ask for support somewhere else.
If so, please close. Thank you.
Comment #4
akalata commentedComment #5
afox commentedThis is an old issue, but I ran to it today on my site. The problem is most likely the same:
PHPMailer has a default charset setting of 'iso-8859-1'. So open class.phpmailer.php, in line 51 you'll find:
Change that to 'utf-8' and it should work.
ISO-8859-1 breaks my special characters in D6 at least. I'm quite sure that D7 has the same problem.
Maybe this should be included in the patch?
Setting this to needs review because of the needed patch addition.
Comment #6
oadaeh commentedYou haven't attached a patch, you've copied in a line of code. For information about how to create a patch, see this page: http://drupal.org/patch.
Comment #7
fabianx commentedWell, but then this "patch" at least needs work, because while its incorrect, it works in general ...
Comment #8
fabianx commentedDuplicate of #1330714: Character encoding conflict between Drupal and phpmailer.