Tag Archive for 'utf8'

The BOM, UTF-8 and Rails

Some nasty things can happen to your design if your files are saved with a Byte-Order Mark (BOM) character at the beginning. We had a view that was totally f*cked up in Firefox by this. The view was simple:

1
2
3
4
5
Some layout around a
<%= yield %>
or around a
<%= @content_for_layout %>
and a secret character gets put in.. it’s […]