プロジェクト

全般

プロフィール

Vote #81761

完了

Encoding drop-down in the import settings defaults to US-ASCII instead of general_csv_encoding in Korean, Thai, and Shimplified Chinese

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Importers_15
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
15
version_id:
155
issue_org_id:
36377
author_id:
332
assigned_to_id:
332
comments:
2
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

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
--------------------------------------------------------------------------------

Admin Redmine さんが約4年前に更新

  • カテゴリImporters_15 にセット
  • 対象バージョン5.0.0_155 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0