Vote #70078
完了Export CSV has character encoding error
100%
説明
- login and issues tab
- when the ui language is English ,export the Chinese encoding issues, the CSV file is Malformed.just like this:
Status 椤圭洰 璺熻釜¶
宸插叧闂?涓婃捣绉诲姩璁¢噺鑰冩牳绯荤粺 Bug 绔嬪嵆淇
journals
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
source:trunk/config/locales/en.yml@5999#L140
general_csv_encoding: *ISO-8859-1*
You can see Chinese characters in Chinese locale.
I will replace invalid characters to '?' like PDF in 1.3.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Just a little remark : The encoding used for CSV export is dependent on the user interface choice. Unfortunately, because I work with an English interface doesn't mean that every comment is going to be in English.
Here, we had to replace pretty much every local's yml file to specify UTF-8 for csv export encoding.
On the same basis, exporting french comments with ISO-8859-1 yields bad characters, making this a poor encoding choice for the french locale...
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Committed in r7947.
--------------------------------------------------------------------------------
related_issues
relates,Closed,7096,CSV Issues Export + Ruby 1.9 + Thin + non-ascii characters causes "invalid byte sequence in US-ASCII"
duplicates,Closed,6621,Multibyte symbols are wrongly displayed in issues CSV export (ISO-8859)