Ruby 1.9: add "encoding: utf-8" header at application_helper.rb

Following error raises in case that time log has non ASCII comments.

<pre>
ActionView::TemplateError (incompatible character encodings: UTF-8 and ASCII-8BIT)
 on line #5 of app/views/timelog/index.html.erb:
3: </div>
4:
5: <%= render_timelog_breadcrumb %>
6:
7: <h2><%= l(:label_spent_time) %></h2>

    app/helpers/application_helper.rb:407:in `join'
    app/helpers/application_helper.rb:407:in `breadcrumb'
    app/helpers/timelog_helper.rb:32:in `render_timelog_breadcrumb'
    app/views/timelog/index.html.erb:5
</pre>

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7803 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-11-13 13:56:20 +00:00
parent c54b33ddca
commit 3511292a17
1 changed files with 2 additions and 0 deletions

View File

@ -1,3 +1,5 @@
# encoding: utf-8
#
# Redmine - project management software
# Copyright (C) 2006-2011 Jean-Philippe Lang
#