stpl / csv_import_issues

Redmine plugin that allows importing of issues via CSV allowing user to map columns of csv to issue attributes.
10 stars 15 forks source link

if the csv file has chinese word,plugin import failed #13

Closed samrain closed 10 years ago

samrain commented 10 years ago

ActionView::Template::Error (incompatible character encodings: UTF-8 and ASCII-8BIT): 26: <% @csv_rows[0].each_with_index do |value, index| %> 27: 28: <%= value %> 29: <%= @csv_rows[1][index] %> 30: <% @options = params[:options][index] if params[:import] %> 31: 32: <%= select_tag :options, options_for_select(@query, :selected => @options), {:name => "options[]", :prompt => "No Match (Skip)"} activesupport (3.2.19) lib/active_support/core_ext/string/output_safety.rb:135:in concat' activesupport (3.2.19) lib/active_support/core_ext/string/output_safety.rb:135:inconcat' actionpack (3.2.19) lib/action_view/buffers.rb:11:in `<<'

samrain commented 10 years ago

I find the bug in the finalize.html.erb. pls see my pull request

stpl commented 10 years ago

Hi @samrain Thanks for the pull request, we have merged it.