From: Toshi MARUYAMA Date: Sun, 13 Nov 2011 13:56:20 +0000 (+0000) Subject: Ruby 1.9: add "encoding: utf-8" header at application_helper.rb X-Git-Tag: 1.3.0~208 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3511292a177ad4b0121ebdfe8342f6dc9809c82a;p=redmine.git Ruby 1.9: add "encoding: utf-8" header at application_helper.rb Following error raises in case that time log has non ASCII comments.
ActionView::TemplateError (incompatible character encodings: UTF-8 and ASCII-8BIT)
 on line #5 of app/views/timelog/index.html.erb:
3: 
4:
5: <%= render_timelog_breadcrumb %>
6:
7: 

<%= l(:label_spent_time) %>

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
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7803 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 73d62ca77..b037e72c8 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1,3 +1,5 @@ +# encoding: utf-8 +# # Redmine - project management software # Copyright (C) 2006-2011 Jean-Philippe Lang #