Issue #3620 resolved

Tortoisehg 2.11 x64 Simplified Chinese UTF8 for automatic encoding detection is incorrect

Zhou Wei
created an issue

The latest Tortoisehg 2.11 x64 version, I'm on Simplified Chinese Windows 8, x64 system, and now it is for Chinese support for a comprehensive improvement, I have been very satisfied, but I use git during the past two months from the start again when using hg, or find a small problem. In the lower right corner of the commit dialog, diff area, using utf8 encoding for Simplified Chinese text display is not correct, but fortunately I was allowed to manually change the "Encoding" to utf8 to solve this problem, but each submission must be manually changed again. "encoding ";, I want to say is, can enhance the ability to detect text encoding, correctly detected using UTF8 encoding Simplified Chinese? Thank you;

最新的Tortoisehg 2.11 x64版本,我在简体中文Windows 8,x64系统上使用,现在它对于中文的支持全面完善,我已经很满意了,但我从过去两个多月改用git的期间,重新开始使用hg时,还是发现一个小问题。在提交对话框的右下角,diff区域,对于采用utf8编码的简体中文文本显示不正确,好在我可以自己手工更改"Encoding"到utf8来解决这个问题,可是每次提交都要重新手工更改"Encoding";我想说的是,能否提高检测文本编码的能力,正确检测采用UTF8编码的简体中文呢?谢谢;

Comments (9)

  1. Marc Schlaich

    If noticed the same issue with German umlauts (üöä). I'm pretty sure that this has worked before. I guess this comes from f4dba897f00.

    Zhou Wei A solution is to define the encoding in Settings > Server > Encoding. Though I find this very unintentional.

    Using UTF-8 if no encoding is defined might be a better choice than picking the default platform encoding (cp1252 in my case).

  2. Yuya Nishihara

    this comes from f4dba897f00.

    No. There was long-standing bug that can corrupt local-encoding string. See #3299 and 007047b54911.

    Using UTF-8 if no encoding is defined might be a better choice than picking the default platform encoding (cp1252 in my case).

    It's vary by project, country, etc. If you always use UTF-8, add it to global settings.

    Eventually, it may provide a option to auto-detect encoding, but currently not.

  3. Log in to comment