Hi

I have installed Mime Mail in order to send Simplenews newsletters with HTML formatting. However, most of my readers are getting the newsletter with odd symbols instead of accented characters.

Can somebody explain how to avoid this?

Thanks in advance
--
Albert

CommentFileSizeAuthor
#6 mimemail-utf8.diff509 bytesallie micka

Comments

deekayen’s picture

Status: Active » Postponed (maintainer needs more info)

Which characters? (an email full source is preferable for perspective)

bgm’s picture

I am having this problem as well, with accentuated caracters and with the apostrophe ('), when using mimemail with the send module. It seems similar to what people describe here: http://drupal.org/node/78876

For example:

"De l’eau potable." should be "De l'eau potable"
"Québec" should be "Québec".

The html/mime file is correct HTML in UTF-8 format. The problem is that Hotmail and Gmail do not show the contents correctly. In Mutt it displays fine.

I will continue searching.

matt

mark.luyten’s picture

This not only applies to Hotmail, .. also to all MS windows systems as they expect ISO Westerneurop, not UTF-8. Manually switching the browser or e-mail client to UTF_8 does solve the problem but is hard to explain to each and every user.

Mark Luyten

jerdavis’s picture

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

UTF-8 is used in Mimemail as the character set specifically because that is what is considered the standard for content within Drupal to allow for multiple language support.

At this time there are no plans of changing the character set or attempting to add others to Mimemail in order to work around hotmail and some other client's lack of proper support or handling for UTF-8. If you are successful in doing so, please submit a patch!

agidise’s picture

Just add this in in theme_mimemail_message():
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

allie micka’s picture

StatusFileSize
new509 bytes

Thanks agidise

Can others confirm this fix? It would be very handy if it works! I'm attaching a patch. If anyone can confirm that it works - without breaking existing functionality for Thunderbird, OS X Mail, Gmail, Yahoo, etc. - I'll be happy to commit.

jerdavis’s picture

Status: Closed (fixed) » Needs review

Tested this under Outlook 2007, gmail, Apple Mail and hotmail. It seems to be working correctly under all of these. There is still an issue in hotmail where the plain text email is shown and the html email is an attachment.

allie micka’s picture

Status: Needs review » Fixed

Committed to HEAD and DRUPAL-5. Thanks!

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

darrenphillips’s picture

I'm using drupal 5.7 and have tried mimemail 5.x-1.x-dev, HEAD, 5.x-1.0 and the patch to HEAD http://drupal.org/node/255821 but I still have problems with accented characters in emails to Hotmail addresses. The problem is with the inbox view, when I open the email it is fine. The email I'm sending as a from address that includes "Lizée" but appears in the hotmail inbox as "Lizée".

Any ideas?

thanks.

Helenag’s picture

Version: 5.x-1.x-dev » 5.x-1.0

I'm having a problem with mime mail. Gmail presents the title of the posts (sent by email) with wrong characters like this: "Construções"

I'm using drupal 5.3, mime mail 5.x-1.0.

Thanks for your help.