Vote #78633
未完了Character encoding auto-detection using rchardet
0%
説明
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
--------------------------------------------------------------------------------