Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Actionmailer does not set charset on attachments

#2713

Actionmailer deliberately removes the character set from attachments (line 71 of part.rb simply says: ctype_attrs.delete "charset")

While this may make sense for pictures and binaries, there are several attachments types where a charset may be necessary, such as text files, html files and icalendar attachments.

One way to solve it would be to add something like: unless real_content_type.contains?('text')

Reported by Fjan · May 25th, 2009 @ 01:31 PM

State: resolved
Milestone: 3.x
Assigned to: Mikel Lindsaar Mikel Lindsaar
Importance: none

Activity

  1. Jeremy Kemper
    Jeremy Kemper
    • Milestone changed from 2.x to 3.x

    May 4th, 2010 @ 06:48 PM

  2. David Trasbo
    David Trasbo
    • Assigned user set to Mikel Lindsaar
    • Importance changed from to

    I'm assigning this to you, Mikel. I imagine you know whether or not this issue is relevant?

    July 1st, 2010 @ 08:29 PM

  3. David Trasbo
    David Trasbo
    • Assigned user changed from Mikel Lindsaar to Rohit Arondekar

    This can be marked "needs more info" for now.

    September 12th, 2010 @ 08:24 PM

  4. Rohit Arondekar
    Rohit Arondekar
    • State changed from new to needs-more-info
    • Assigned user changed from Rohit Arondekar to Mikel Lindsaar

    I found that line only in the old api. Does this mean that this issue is resolved/will be resolved once the old API is deprecated?

    September 13th, 2010 @ 01:45 AM

  5. Fjan
    Fjan

    I just tried it on Rails 3 and this appears to be no longer a problem (it sets a "charset:UTF-8" on attachments by default now). Can be marked fixed as far as I'm concerned. Cheers.

    September 13th, 2010 @ 09:06 AM

  6. Mikel Lindsaar
    Mikel Lindsaar
    • State changed from needs-more-info to resolved

    Awesome.

    September 13th, 2010 @ 09:21 AM