Project

General

Profile

Actions

Feature #26279

closed

Allow switching the encoding to UTF-8 when exporting to CSV

Added by Go MAEDA almost 7 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Issues
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed

Description

In the current implementation, the encoding of exported CSV is fixed for each language and users cannot change it.

Sometimes it is problematic for teams using multiple languages. Suppose the situation that issues in a project are written in Japanese or Chinese (mixed language project; some issue are written in Japanese and some issues are written Chinese). If you want to export those issues to CSV, using UTF-8 as the CSV encoding is only solution to get readable (not garbled) CSV file. But actually the encoding is fixed to CP932 for Japanese users (source:tags/3.3.3/config/locales/ja.yml#L164) and gb18030 for Chinese users (source:tags/3.3.3/config/locales/zh.yml#L147). No one can get CSV file in UTF-8 without modifying source code of Redmine.

I think the problem can be resolved if users can override general_csv_encoding setting in CSV export options window like the following picture. The encoding in the drop-down list is defaults to general_csv_encoding and users can change to arbitrary encoding. We already have the similar drop-down in CSV import feature.


Files

csv-export-options@2x.png (60.6 KB) csv-export-options@2x.png Go MAEDA, 2017-06-27 04:01
select_encoding.patch (7.38 KB) select_encoding.patch Mizuki ISHIKAWA, 2017-07-04 02:01
select_encoding2.patch (7.4 KB) select_encoding2.patch Mizuki ISHIKAWA, 2017-07-04 05:54
select_encoding3.patch (7.1 KB) select_encoding3.patch Mizuki ISHIKAWA, 2018-04-03 07:01
select_encoding4.patch (8.48 KB) select_encoding4.patch Mizuki ISHIKAWA, 2018-04-05 08:16
select_encoding5.patch (8.55 KB) select_encoding5.patch Go MAEDA, 2018-05-04 04:01

Related issues

Related to Redmine - Defect #27213: Euro symbol (€) is replaced by ? when performing a CSV exportClosed

Actions
Related to Redmine - Patch #17902: CSV encoding should be UTF-8 in French localeClosedJean-Philippe Lang

Actions
Related to Redmine - Defect #27975: CSV export of different languageClosed

Actions
Related to Redmine - Defect #31511: CSV export of time entries report does not honor project filterClosedGo MAEDA

Actions
Related to Redmine - Feature #32641: "general_csv_encoding:" should be "UTF-8" in en.yml.Closed

Actions
Actions

Also available in: Atom PDF