Ruby on Rails Thursday, July 29, 2010

On Jul 29, 10:08 am, johnny <jklem...@gmail.com> wrote:
> I'm reading "Dive into html5" and inhttp://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?

because rails sets the content-type header (which, as the article you
linked to notes, is the preferred mechanism for this)

Fred

--
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