Unable to correctly recognize Chinese file names in ZIP compressed files. [SOLVED]

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
cheming
Member
Member
Posts: 153
Joined: 2004-05-07, 14:38 UTC
Location: China

Unable to correctly recognize Chinese file names in ZIP compressed files. [SOLVED]

Post by *cheming »

The filename is P-603-施翀.md, where '施翀' are Chinese characters. After compressing it into a ZIP file, open it using Total Commander and select 'Auto' for the encoding recognition of the filename. It will not recognize these two Chinese characters correctly unless you set it to code page 936.
Last edited by cheming on 2023-04-02, 01:55 UTC, edited 1 time in total.
endest
New Member
New Member
Posts: 1
Joined: 2022-07-14, 06:43 UTC

Re: Unable to correctly recognize Chinese file names in ZIP compressed files.

Post by *endest »

07.06.22 Fixed: wincmd.ini [Packer] PreferUtf8ForZip=1 is now the default also on Asian language Windows versions (32/64)

try change this to 0
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48005
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Unable to correctly recognize Chinese file names in ZIP compressed files.

Post by *ghisler(Author) »

The problem is that some ANSI-Encoded Chinese characters are exactly the same code as some different UTF-8 characters. In this case TC now prefers UTF-8, because some faulty ZIP packers create ZIP files with UTF-8 file names but don't set the UTF-8 flag in the header.
Author of Total Commander
https://www.ghisler.com
cheming
Member
Member
Posts: 153
Joined: 2004-05-07, 14:38 UTC
Location: China

Re: Unable to correctly recognize Chinese file names in ZIP compressed files.

Post by *cheming »

endest wrote: 2023-03-28, 02:00 UTC 07.06.22 Fixed: wincmd.ini [Packer] PreferUtf8ForZip=1 is now the default also on Asian language Windows versions (32/64)

try change this to 0
YES!It works. NICE!
cheming
Member
Member
Posts: 153
Joined: 2004-05-07, 14:38 UTC
Location: China

Re: Unable to correctly recognize Chinese file names in ZIP compressed files. [SOLVED]

Post by *cheming »

Today it was discovered that when TAR compressed format files contain the above-mentioned characters in the archive file name, they still cannot handle text encoding issues correctly, resulting in the final file being unable to be interpreted correctly.
Post Reply