C1ZipEntry.FileName error with Japanese file name

Posted by: anh.dt2 on 21 August 2024, 12:25 am EST

    • Post Options:
    • Link

    Posted 21 August 2024, 12:25 am EST - Updated 21 August 2024, 12:32 am EST

    Hello!

    I want to check the name of each file in the zip file but unfortunately the files with Japanese names are corrupted. Is there any way to fix it?

    i use C1.WPF.Zip.4.6.2

    test1.zip

    ConsoleApp7.zip

  • Posted 21 August 2024, 5:37 am EST

    Hi,

    We are discussing this issue with our developers. [Internal Tracking ID: C1XAML-36809] We will update you on this as soon as we hear back from them.

    Thanks & Regards,

    Aastha

  • Posted 22 August 2024, 6:52 am EST

    Hi,

    You can set the encoding option to ANSII/OEM - Japanese Shift-JIS (932) to get the desired behavior. Here is the code snippet for the same:

    ZipEncoding.Encoding = Encoding.GetEncoding(932);
    C1ZipFile zip = new C1ZipFile();
    zip.Open(path);

    We have attached the updated sample for full implementation. [ConsoleApp7_Upd.zip]

    Thanks & Regards,

    Aastha

  • Posted 23 August 2024, 12:01 am EST - Updated 23 August 2024, 12:06 am EST

    Hi,

    An exception occurred when i used password protected filezip. Is there any way to fix this?



    ConsoleApp7.zip

  • Posted 26 August 2024, 6:03 am EST

    Hi,

    Thanks for reporting this issue.

    We are discussing this issue with our developers. We will update you once we hear back from them.

    Kind Regards,

    Aastha

  • Posted 25 September 2024, 2:54 am EST

    Hi,

    This exception shows that the password was entered incorrectly.

    As per the developers, this is because C1.Zip supports only CRC32 Encryption at the moment. Password encrypted in AES-256 is not supported.

    We highly apologize for the convenience caused but this is a limitation as of now.

    Thanks & Regards,

    Aastha

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels