Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Curiously, data were appearing in <code>I18n.backend</code> as expected but were not individually selectable using <code>I18n.t</code></p> <p>This led to the realization that the load path must be configured correctly for Rails to find the translation files, but that it was not parsing them properly.</p> <p>This <a href="https://stackoverflow.com/questions/7868309/#answer-8017048">led to @ANeves discovering</a> that a <a href="http://en.wikipedia.org/wiki/Byte_order_mark" rel="nofollow noreferrer">BOM</a> was disrupting Heroku's ability to parse the files which <a href="https://github.com/aneves/deficit-puzzle/commit/eea704726cbad6c04b747ac88a08bf7cf0a14354#config/locales" rel="nofollow noreferrer">resulted in the fix</a> of removing the offending BOM.</p> <hr> <h3>Wikipedia on BOM in <a href="http://en.wikipedia.org/wiki/Byte_order_mark#UTF-8" rel="nofollow noreferrer">UTF-8</a></h3> <blockquote> <p>The Unicode Standard <a href="http://en.wikipedia.org/wiki/Byte_order_mark#cite_note-1" rel="nofollow noreferrer">does permit the BOM in UTF-8</a>, but <a href="http://en.wikipedia.org/wiki/Byte_order_mark#cite_note-2" rel="nofollow noreferrer">does not require or recommend</a> its use. Byte order <a href="http://en.wikipedia.org/wiki/Byte_order_mark#cite_note-utf-8-bom-3" rel="nofollow noreferrer">has no meaning in UTF-8</a> so in UTF-8 the BOM serves only to identify a text stream or file as UTF-8.</p> <p>Many Windows programs (including Windows Notepad) add BOMs to UTF-8 files by default.</p> </blockquote> <p>If future readers are on <a href="/questions/tagged/ruby-1.9" class="post-tag" title="show questions tagged &#39;ruby-1.9&#39;" rel="tag">ruby-1.9</a> consider reading about <a href="http://gnuu.org/2009/02/02/ruby-19-common-problems-pt-1-encoding/" rel="nofollow noreferrer">common encoding problems</a>.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload