This project is archived and is in readonly mode.

#2677 new
Paul

ActionMailer and client encoding trouble

Reported by Paul | May 19th, 2009 @ 10:59 AM | in 3.x

i had trouble getting a MS Outlook Client to display utf-8 properly. The only way to support special characters was to send all the stuff with iso-8859-1. But hey, all the rails app stuff is utf-8 encoded (DB, Templates, Files...)

So i decided to add an 'arguments_charset' to actionmailer to tell actionmailer to recode the input with iconv if the 'charset' definition differs from the 'arguments_charset' definition.

With this one can write

config.action_mailer.default_charset = 'ISO-8859-1' config.action_mailer.default_arguments_charset = 'UTF-8'

within environment.rb to send all email as 'ISO-8859-1'

Attached a patch. No tests included - but it works for me now and MS Outlook users will see üäö :)

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Attachments

Pages