Fix many encoding problems #864

Merged
merged 5 commits into from May 27, 2012
Commits on May 26, 2012
  1. @brodock
  2. @brodock

    Better fix for encoding problems on rendering of inline file visualiz…

    brodock committed May 26, 2012
    …ations like README files.
  3. @brodock

    It's dangerous to rescue errors here as it will hide bugs. define_tre…

    brodock committed May 26, 2012
    …e_vars already catch all situations where something may not exist.
  4. @brodock

    Better algorithm to deal with encodings. Moved fallback rescue messag…

    brodock committed May 26, 2012
    …e from view to encode library.
    
    This helps fix cases where UTF-8 is wrongly identified as ISO-8859-1. We will only try to convert strings if we are 100% sure about the charset, otherwise, we will fallback to UTF-8.
Commits on May 27, 2012
  1. @brodock