# \[Rails3\] How to send Content-type HTTP header in all my html files generated by Rails3

**URL:** <https://www.ruby-forum.com/t/rails3-how-to-send-content-type-http-header-in-all-my-html-files-generated-by-rails3/194286>\
**Category:** Rails\
**Created:** [September 2, 2010, 1:12am UTC](https://www.ruby-forum.com/t/rails3-how-to-send-content-type-http-header-in-all-my-html-files-generated-by-rails3/194286 "2010-09-02T01:12:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![WSzP](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/f14d63/32.png) [@WSzP](https://www.ruby-forum.com/u/WSzP)\
**Post date:** [September 2, 2010, 1:12am UTC](https://www.ruby-forum.com/t/rails3-how-to-send-content-type-http-header-in-all-my-html-files-generated-by-rails3/194286/1 "2010-09-02T01:12:22Z")

</div>

Hello,  
I wish to replicate this:

\<?php header('Content-type: text/html; charset=utf-8'); ?\>

with Rails 3 in each and every view I got. I guess I should look at  
application.html.erb to add something.  
Not only for avoiding this bug:

> **[IE 8 Charset Bug - Ravelrumba by Rob Flaherty](https://www.ravelrumba.com/blog/ie-8-charset-bug/)**
>
> Earlier today I was playing around with a performance test case when I noticed that stylesheets and scripts were being requested twice in IE8.

but also it makes sense to send the html files generated by my views  
with such header.  
Can you help me please?  
Thanks a lot.
