Actions
Defect #36377
closedEncoding drop-down in the import settings defaults to US-ASCII instead of general_csv_encoding in Korean, Thai, and Shimplified Chinese
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Fixed
Affected version:
Description
The "Encoding" drop-down is supposed to default to the encoding defined by general_csv_encoding
in config/locales/*.yml
files. For example, it should default to "ISO-8859-1" when the language of your account is English.
However, the drop-down always defaults to "US-ASCII" regardless of general_csv_encoding
if the language of the current user is Korean (ko), Thai (th), or Simplified Chinese (zh).
This is because the value of general_csv_encoding
in those languages is not found in Setting::ENCODINGS
in app/models/setting.rb
.
Language | general_csv_encoding | How to fix |
---|---|---|
Korean | CP949 | Add CP949 to Setting::ENCODINGS |
Thai | Windows-874 | Add Windows-874 to Setting::ENCODINGS |
Simplified Chinese | gb18030 | Change general_csv_encoding in zh.yml from gb18030 to GB18030 |
Files
Updated by Go MAEDA almost 3 years ago
- File 36377.patch 36377.patch added
- Subject changed from Encoding drop-down in the import settings defaults to US-ASCII instead of general_csv_encoding in some languages to Encoding drop-down in the import settings defaults to US-ASCII instead of general_csv_encoding in Korean, Thai, and Shimplified Chinese
- Target version set to Candidate for next minor release
Here is a patch to fix the issue.
Actions