This project is archived and is in readonly mode.
Actionmailer does not set charset on attachments
Reported by Fjan | May 25th, 2009 @ 01:31 PM | in 3.x
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')
Comments and changes to this ticket
-
David Trasbo July 1st, 2010 @ 08:29 PM
- 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?
-
David Trasbo September 12th, 2010 @ 08:24 PM
- Assigned user changed from Mikel Lindsaar to Rohit Arondekar
This can be marked "needs more info" for now.
-
Rohit Arondekar September 13th, 2010 @ 01:45 AM
- 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?
-
Fjan September 13th, 2010 @ 09:06 AM
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.
-
Mikel Lindsaar September 13th, 2010 @ 09:21 AM
- State changed from needs-more-info to resolved
Awesome.
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>