Vote #81761
完了Encoding drop-down in the import settings defaults to US-ASCII instead of general_csv_encoding in Korean, Thai, and Shimplified Chinese
0%
説明
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@ |
!{border: 1px solid grey; width: 769px;}.wrong-default-encoding.png!
journals
Here is a patch to fix the issue.
--------------------------------------------------------------------------------
Fixed in r21335, r21336, r21337, and r21338
--------------------------------------------------------------------------------