Ruby on Rails Thursday, August 20, 2015

I have uploaded the csv to s3 with rails, but the issue is, that the file have arabic names, so when i open that csv file directly from s3 console, its showing the arabic names as gibberish, i have attached that image here


also i tried to add that "charset utf", but its showing as same, is there any workaround for this? 


url = object.url_for(:read, {expires: E::EXPIRE,                   :content_type => "text/csv;charset=utf-8", response_content_disposition: "attachment;filename=#{filename[0]}.csv" }).to_s

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/ccbf534b-81ea-42c9-ab9a-2602e7304afb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment