[bug] verify checksum error when filename contains certain Chinese characters

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
xbeta
Junior Member
Junior Member
Posts: 27
Joined: 2006-01-03, 11:28 UTC
Location: China PR
Contact:

[bug] verify checksum error when filename contains certain Chinese characters

Post by *xbeta »

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
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [bug] verify checksum error when filename contains certain Chinese characters

Post by *ghisler(Author) »

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.
Author of Total Commander
https://www.ghisler.com
User avatar
Usher
Power Member
Power Member
Posts: 1675
Joined: 2011-03-11, 10:11 UTC

Re: [bug] verify checksum error when filename contains certain Chinese characters

Post by *Usher »

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