I understand unicode for TC is a hard work.
After a user in Chinese forum reported this issue, I tested it and report it here.
Create any text file named as origin-系统.txt
and then create checksum,
and then verify them.
TC will show error.
Not all filename contains Chinese have this error.
I guess the program confused in different txt encode.
Image: http://ww1.sinaimg.cn/large/46dac66fgy1g042qsl28fj20pu0ivgm7.jpg
files in a zip: http://att.newsmth.net/att.php?s.837.57231.1700.zip
[bug] verify checksum error when filename contains certain Chinese characters
Moderators: white, Hacker, petermad, Stefan2
- ghisler(Author)
- Site Admin
- Posts: 48097
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: [bug] verify checksum error when filename contains certain Chinese characters
The problem is the following: TC uses ANSI encoding with local codepage as long as all characters of the file names are available in the current codepage. So if you have Chinese codepage and Chinese names, TC will use ANSI encoding.
However, in your case, the resulting codes CF B5 CD B3 are also valid UTF-8 characters. So when reading the file, TC sees a valid UTF-8 encoded file and tries to use UTF-8 names.
Unfortunately I don't currently see any solution to this problem, sorry. I think the best idea would be to implement your suggestion to enable UTF-8 encoding manually.
However, in your case, the resulting codes CF B5 CD B3 are also valid UTF-8 characters. So when reading the file, TC sees a valid UTF-8 encoded file and tries to use UTF-8 names.
Unfortunately I don't currently see any solution to this problem, sorry. I think the best idea would be to implement your suggestion to enable UTF-8 encoding manually.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: [bug] verify checksum error when filename contains certain Chinese characters
2ghisler(Author)There is already similar solution for filenames in ZIP - let user decide which option to choose or ask always…
Andrzej P. Wozniak
Polish subforum moderator
Polish subforum moderator