diff options
author | Go MAEDA <maeda@farend.jp> | 2018-05-07 01:13:12 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2018-05-07 01:13:12 +0000 |
commit | ca2875fab2c3c3d96dcdbad5c3eb1068887dadd4 (patch) | |
tree | 5cc6aa92db02475ea06e2be225b91cb985d9f027 /app/helpers/timelog_helper.rb | |
parent | 43d9bea7c5da32a99c3ebdb828e23d6a02c31c12 (diff) | |
download | redmine-ca2875fab2c3c3d96dcdbad5c3eb1068887dadd4.tar.gz redmine-ca2875fab2c3c3d96dcdbad5c3eb1068887dadd4.zip |
Allow switching the encoding to UTF-8 when exporting to CSV (#26279).
Patch by Mizuki ISHIKAWA.
git-svn-id: http://svn.redmine.org/redmine/trunk@17328 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/timelog_helper.rb')
-rw-r--r-- | app/helpers/timelog_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/timelog_helper.rb b/app/helpers/timelog_helper.rb index d1174fe78..aa6e0f3b6 100644 --- a/app/helpers/timelog_helper.rb +++ b/app/helpers/timelog_helper.rb @@ -76,7 +76,7 @@ module TimelogHelper end def report_to_csv(report) - Redmine::Export::CSV.generate do |csv| + Redmine::Export::CSV.generate(:encoding => params[:encoding]) do |csv| # Column headers headers = report.criteria.collect {|criteria| l(report.available_criteria[criteria][:label]) } headers += report.periods |