title: Rails encoding error. HAML issue I think
body: <p>I'm on rails 3.2.1 using postgres with pg 0.13.2 and haml 3.1.4.
  DB encoding is "unicode" which I'm pretty sure is the same as "UTF-8" to postgres
  Meta tag has charset=utf-8 (on both form page and display page) and the form has accept-charset="UTF-8"</p>
  
  <p>I'm getting the "incompatible character encodings: ASCII-8BIT and UTF-8" error in my production environment (Heroku cedar) and I've tried a bunch of fixes so far but don't really understand what's going on. Dev environment doesn't cause the problem.</p>
  
  <p>The string causing the problem has an apostrophe copy/pasted from Word. If I remove the character everything renders fine but this is user submitted content so it's sure to break again in the future.</p>
  
  <p>From a Heroku consol, calling string.encoding.name returns "UTF-8" and using force_encoding("UTF-8") in the view makes no difference.</p>
  
  <p>But, if I use a haml filter (like :markdown) on the string it all renders fine.
  Also, changing the view to erb fixes the problem.</p>
  
  <p>Any Ideas? It's not really feasible to use filters everywhere and I want to get to the bottom of this.</p>