rubyonrailsin

A Ruby and Rails talk

Sunday, March 28, 2010


[Rails] ActionMailer Attachment : Character encoding for :filename

by rubyonrailsin 0 comments

Tag


Share this post:
Design Float
StumbleUpon
Reddit

Hi,

I want to send a file "joke.txt" with ActionMailer but I want to
rename the file in the mail "député.txt"
I set the parameters :filename of the attachment to "député.txt"

But when I receive the mail I can see : "d��put��.txt"

In the log :
filename*=iso-2022-jp'ja'd%c3%a9put%c3%a9.txt

How can I fix it ?

Thanks for your answer :)

adrien

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment

Subscribe feeds via e-mail

Blog Archive