Why no <meta charset="utf-8" /> in application.html.erb?

2 views
Skip to first unread message

johnny

unread,
Jul 29, 2010, 5:08:38 AM7/29/10
to Ruby on Rails: Talk
I'm reading "Dive into html5" and in http://diveintohtml5.org/semantics.html#encoding
, it says every page should contain <meta charset="utf-8" />,
otherwise it's subject to security vulnerabilities (http://
code.google.com/p/doctype/wiki/ArticleUtf7). I don't see <meta
charset="utf-8" /> being generated in my application.html.erb (in
rails3) Is there a reason behind this?

Frederick Cheung

unread,
Jul 29, 2010, 10:31:02 AM7/29/10
to Ruby on Rails: Talk


On Jul 29, 10:08 am, johnny <jklem...@gmail.com> wrote:
> I'm reading "Dive into html5" and inhttp://diveintohtml5.org/semantics.html#encoding
because rails sets the content-type header (which, as the article you
linked to notes, is the preferred mechanism for this)

Fred
Reply all
Reply to author
Forward
0 new messages