Bug 61200

Summary: Ark does not work very well with Chinese file names (gb2312 and utf8).
Product: [Applications] ark Reporter: Wang Zhigang <wangzg>
Component: generalAssignee: Helio Castro <helio>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: 2.1.9   
Target Milestone: ---   
Platform: RedHat Enterprise Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: a zip file with a Chinese named file and an English named file in it.

Description Wang Zhigang 2003-07-14 03:08:23 UTC
Version:           2.1.9 (using KDE KDE 3.1.2)
Installed from:    RedHat RPMs
Compiler:          gcc 3.2 
OS:          Linux

Open a archive file with ark:
1.When select a file with Chinese name in the view and select "extract",it do
nothing.But work well with English-name files.
2.It can not display chinese files names crrectly in the view only for *.zip
files.(display confused code).The code in ark dealing with *.zip files may has
some problem, while other format files don't have this problems.
3.When and a Chinese name file to a ZIP arhiver,it has the same problem as
above.(display cofused code,not the real file name.)
I tested it under kdeutils-3.1.2 (stable) not latest ark. Because I can not
compile the latest ark properly.
I want to listen suggestions on how to solve the problem, if it is a bug and has
not solved in latest version.
Comment 1 Wang Zhigang 2003-07-14 03:14:12 UTC
Created attachment 1997 [details]
a zip file with a Chinese named file and an English named file in it.

You can open this file to see the bug.
Comment 2 Henrique Pinto 2003-11-02 02:22:48 UTC
This is very difficult to solve.

The zip file does not store the filename encoding as far as I know, so there's no way for Ark to discover it.

Does the problem happen when browsing the file in Konqueror?
Do you have similar problems with the command-line zip utility?
Comment 3 Henrique Pinto 2003-11-02 02:50:35 UTC
For me, even the command-line zip shows incorrect filenames.

Maybe we can use KLocale to try to do an encoding conversion, but I'm not sure it would work.
Comment 4 Helio Chissini de Castro 2003-11-02 04:13:07 UTC

*** This bug has been marked as a duplicate of 43696 ***
Comment 5 Sergey Smirnov 2005-02-23 22:00:21 UTC
Where is the same problem whith cp1251 encoding - tar.gz work fine, but zip show filenames in whong encoding. What about rar it depend of extract method, from konqueror fine, from konqueror whong.