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

smk-ka’s picture

Project: Invite » SMTP Authentication Support
Component: Miscellaneous » Code
Category: support » bug

Invite doesn't have anything to do with email encodings, it just utilizes the standard hooks to send out emails. Passing forth to SMTP module.

oadaeh’s picture

This 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?

skizzo’s picture

for 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.

akalata’s picture

Status: Active » Postponed (maintainer needs more info)
afox’s picture

Version: 5.x-1.x-dev » 7.x-1.x-dev
Status: Postponed (maintainer needs more info) » Needs review

This 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:

  public $CharSet           = 'iso-8859-1';

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.

oadaeh’s picture

Status: Needs review » Active

You 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.

fabianx’s picture

Status: Active » Needs work

Well, but then this "patch" at least needs work, because while its incorrect, it works in general ...

fabianx’s picture

Status: Needs work » Closed (duplicate)