# Send\_data problem

**URL:** <https://www.ruby-forum.com/t/send-data-problem/128757>\
**Category:** Rails\
**Created:** [February 11, 2008, 11:18am UTC](https://www.ruby-forum.com/t/send-data-problem/128757 "2008-02-11T11:18:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MohsinHijazee](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e68b1a/32.png) [@MohsinHijazee](https://www.ruby-forum.com/u/MohsinHijazee)\
**Post date:** [February 11, 2008, 11:18am UTC](https://www.ruby-forum.com/t/send-data-problem/128757/1 "2008-02-11T11:18:46Z")

</div>

Hi!  
Following call for sending data does not sets the HTTP Content-Type  
header under Rails 2.02:

send\_data(csv\_string,:filename =\> @entity.name+".csv", :type =\> ‘text/  
csv; charset=UTF-8’)

Can anyone help why its happening?

Regards,  
Mohsin
