7zip filename encoding problems

4

2

I have problems extracting files from 7zip archive with non-ascii symbols in filenames.

I have identical versions of 7z on two computers, which differ only by the system locale. If I compress on one computer and try to decompress on another, it fails. If I do this on the same computer, everything is ok.

Does anybody know what could be the reason for this and how this problem could be solved?

lizarisk

Posted 2013-05-30T13:15:55.077

Reputation: 161

Try compressing the file with the -mcu flag to force UTF-8 encoding of the filenames (from the 7zip Revision History, 4.58 beta). Also, what operating systems are you using?

– Breakthrough – 2013-05-30T13:30:48.737

linux linux linux – lizarisk – 2013-05-30T14:54:39.173

Have you experimented with changing the locale at either end with LANG="...." 7za .... so that the locale temporarily matches the one used at the other end? Have you verified that the filenames are really matching the expected locale? Could you post the output of locale from both systems? – zagrimsan – 2013-08-19T10:26:22.727

1I'm a little confused -- how does it fail? What are the symptoms? – Daniel R Hicks – 2013-09-04T02:56:02.257

Answers

3

If you cannot workout getting your non-unicode locale machine to work with unicode names, you could try having the first 7z stuff it into a "tar" first. That might hide the offending filenames on the other machine.

SaburoutaMishima

Posted 2013-05-30T13:15:55.077

Reputation: 63

1

Try with AppLocale utility Or you can use HotFix Provided by Microsoft

Rashmin

Posted 2013-05-30T13:15:55.077

Reputation: 11

Did you notice the OP is using Linux? (He should have mentioned it more clearly btw) – Dmitry Grigoryev – 2015-12-18T08:05:44.443