プロジェクト

全般

プロフィール

Vote #78633

未完了

Character encoding auto-detection using rchardet

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

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

0%

予定工数:
category_id:
37
version_id:
0
issue_org_id:
26423
author_id:
1759
assigned_to_id:
0
comments:
2
status_id:
1
tracker_id:
2
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

Current character encoding auto-detection cant differentiate cp1251 from cp866 (if both encodings are configured).

But https://rubygems.org/gems/rchardet/ can !

I have made proof of concept patch on my Redmine 3.3.1 from debian package.
And it just works without significant performance impact.


journals

--------------------------------------------------------------------------------
Could you add tests?
source:tags/3.4.1/test/unit/lib/redmine/codeset_util_test.rb

I don't like auto detection.
Japanese has many character encodings (UTF-8, EUC-JP, CP932, Shift-JIS, and ISO-2022-JP).
Auto detection misbehaves in many cases in Japanese.

I think Redmine should have option.
* No auto detection
* unshift
* push

--------------------------------------------------------------------------------

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

  • カテゴリI18n_37 にセット

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

いいね!0
いいね!0