gitlabhq/gitlabhq — pull request #864 by brodock (2012-05-26 23:24:35+00:00)
Title: Fix many encoding problems

I've appended bug fixes for #725, #782, #648, #782 with a better solution then
force_encoding to UTF-8 as it will not fix every case. A proper reading
of Yehuda Katz's article about 1.9 encoding is a must to fully
understand the problem:
http://yehudakatz.com/2010/05/05/ruby-1-9-encodings-a-primer-and-the-solution-for-rails/.

This also fixes a unreported problem with plain/text blobs being sent
without charset being informed on HTTP HEADER.