This project is archived and is in readonly mode.
HTML5 charset
-
Tristan Dunn
+1
-
Mark Turner
+1
-
Jeremy Kemper
- Assigned user set to josh
- State changed from new to open
- Milestone cleared.
<meta charset=utf-8>is a bit shorter, and a BOM is shorter still... -
josh
Do we even need that line at all? We set the Content-Type header correctly.
Content-Type: text/html; charset=utf-8 -
Dan Croak
Josh,
Yes, if Rails is correctly setting the Content-Type header, then those lines are unnecessary in HTML5.
Attached a self-contained, one commit patch that removes those lines.
-
josh
- State changed from open to committed
-
Jeremy Kemper
Rails doesn't set the header when the public files are served by apache/nginx/httpd directly, so they have metas in case the server isn't configured to use UTF-8 default. Using a BOM would work around that as well.
-
Dan Croak
Jeremy,
I don't really understand the BOM but I see what you're saying about the public files.
If you want it, I attached another patch that brings back the short meta charset tags for just the public files (the erb layout remains without any meta tag or BOM).
Thanks for sweating the details, guy. I realize this was very low on the list of priorities.
-
Dan Croak
*guys
