ouch icon indicating copy to clipboard operation
ouch copied to clipboard

Ouch breaks the file name when the encode is not utf-8

Open linsui opened this issue 1 year ago • 1 comments

Version

ouch 0.5.1

Description

Create a test file

mkdir test
cd test
touch 这是一个测试文件.txt

Change the file name encode

convmv -t CP936 -f UTF-8 --notest 这是一个测试文件.txt

Compress it with zip

cd ..
zip -r test.zip test

If I decompress test.zip with 7zz or unzip, then we can recover the filename with convmv. But if I decompress test.zip with ouch, the file name is different and I can't convert it with convmv.

Current Behavior

No response

Expected Behavior

No response

Additional Information

No response

linsui avatar Jul 15 '24 08:07 linsui

I also meet the issue. Is it possible to specify the encoding or to verify the encoding automatically?

payprays avatar Jun 10 '25 03:06 payprays