Index: app/helpers/issues_helper.rb =================================================================== --- app/helpers/issues_helper.rb (revision 3111) +++ app/helpers/issues_helper.rb (working copy) @@ -129,15 +129,15 @@ case detail.property when 'attr', 'cf' if !detail.old_value.blank? - l(:text_journal_changed, :label => label, :old => old_value, :new => value) + l(:text_journal_changed, :label => label.force_encoding('utf-8'), :old => old_value.force_encoding('utf-8'), :new => value.force_encoding('utf-8')) else - l(:text_journal_set_to, :label => label, :value => value) + l(:text_journal_set_to, :label => label.force_encoding('utf-8'), :value => value.force_encoding('utf-8')) end when 'attachment' - l(:text_journal_added, :label => label, :value => value) + l(:text_journal_added, :label => label.force_encoding('utf-8'), :value => value.force_encoding('utf-8')) end else - l(:text_journal_deleted, :label => label, :old => old_value) + l(:text_journal_deleted, :label => label.force_encoding('utf-8'), :old => old_value.force_encoding('utf-8')) end end Index: app/views/mailer/issue_edit.text.plain.rhtml =================================================================== --- app/views/mailer/issue_edit.text.plain.rhtml (revision 3111) +++ app/views/mailer/issue_edit.text.plain.rhtml (working copy) @@ -4,6 +4,6 @@ <%= show_detail(detail, true) %> <% end -%> -<%= @journal.notes if @journal.notes? %> +<%= @journal.notes.force_encoding('utf-8') if @journal.notes? %> ---------------------------------------- <%= render :partial => "issue_text_plain", :locals => { :issue => @issue, :issue_url => @issue_url } %> Index: app/views/issues/_edit.rhtml =================================================================== --- app/views/issues/_edit.rhtml (revision 3111) +++ app/views/issues/_edit.rhtml (working copy) @@ -2,7 +2,7 @@ :url => {:action => 'edit', :id => @issue}, :html => {:id => 'issue-form', :class => nil, - :multipart => true} do |f| %> + :multipart => true, :'accept-charset' => 'utf-8'} do |f| %> <%= error_messages_for 'issue' %> <%= error_messages_for 'time_entry' %>
Index: app/views/issues/new.rhtml =================================================================== --- app/views/issues/new.rhtml (revision 3111) +++ app/views/issues/new.rhtml (working copy) @@ -1,7 +1,7 @@

<%=l(:label_issue_new)%>

<% labelled_tabular_form_for :issue, @issue, - :html => {:multipart => true, :id => 'issue-form'} do |f| %> + :html => {:multipart => true, :id => 'issue-form', :'accept-charset' => 'utf-8'} do |f| %> <%= error_messages_for 'issue' %>
<%= render :partial => 'issues/form', :locals => {:f => f} %> Index: config/environment.rb =================================================================== --- config/environment.rb (revision 3111) +++ config/environment.rb (working copy) @@ -19,7 +19,8 @@ Rails::Initializer.run do |config| # Settings in config/environments/* take precedence those specified here - + Encoding.default_external = 'utf-8' + Encoding.default_internal = 'utf-8' # Skip frameworks you're not going to use # config.frameworks -= [ :action_web_service, :action_mailer ] Index: lib/tabular_form_builder.rb =================================================================== --- lib/tabular_form_builder.rb (revision 3111) +++ lib/tabular_form_builder.rb (working copy) @@ -25,7 +25,7 @@ super end - (field_helpers - %w(radio_button hidden_field) + %w(date_select)).each do |selector| + (field_helpers - [:radio_button, :hidden_field] + [:date_select]).each do |selector| src = <<-END_SRC def #{selector}(field, options = {}) label_for_field(field, options) + super