chiliproject/chiliproject — pull request #116 by meineerde (2011-10-29 12:55:30+00:00)
Title: #591 Ruby 1.9 compatibility

This patch sets internal and external encoding to UTF-8 when using Ruby 1.9.

It also adds an additional rake task `code:source-encoding` to set a magic comment on all ruby files to set the source encoding also to UTF-8. Without this magic comment, Ruby assumes US-ASCII encoding which clashes with UTF-8 string retrieved from the outside when performing certain string operations like concatenation or formatting.

This patch set should tremendously improve our Ruby 1.9 compatibility. The only issues I could still observe where concerned with some app servers / rack / rails where there still seemed to be a clash with string encodings. This is something we could only fix with using a newer Rack and Rails however...