C1ZiP 4.20202.438 Problem with German Umlauts

Posted by: SHanau on 19 April 2021, 3:51 pm EST

  • Posted 19 April 2021, 3:51 pm EST

    Hi Everybody,

    I’m experiencing exactly the problem Thomas had in 2017 when he submitted the following incident:

    https://www.grapecity.com/forums/winforms-edition/unzip-mac-file

    After decompressing zip-files using C1Zip containing directories and/or files with german umlauts (ü) in their names I found the ü character were replaced by a graphical question mark.

    I’ve downloaded your C1ZipDemo, compiled it unedited using Win10, VS2015 and C1Zip version 4.2020.438. I’ve tested it on five different machines and experienced everytime the exact same behaviour…

    I’ve attached the original C1ZipDemo, a compiled exe and a test zip-file containing directories and files with umlauts in their name.

    Please advise,

    StephanZipFileDemoUmlaut.zip[img]https://gccontent.blob.core.windows.net/forum-uploads/file-7b8027f0-8288-4090-908e-432a67af3aca.jpg[/img]

  • Posted 20 April 2021, 2:43 am EST

    Hi Stephan,

    the simplest resolution might be to replace C1Zip with the “System.IO.Compression.ZipArchive” from .NET framework 4.5 and newer. Here, you can specify a zip entry encoding.

    The following snippet worked for me (in my test, a zipfile created with WinZip used encoding IBM437 - https://stackoverflow.com/questions/1510791/how-to-create-zip-files-with-specific-encoding):

    
    var encoding = Encoding.GetEncoding("IBM437");
    ileStream fileStreamZip = File.OpenRead(zipFilePath);
    ZipArchive zipFile = new ZipArchive(fileStreamZip, ZipArchiveMode.Read, false, encoding);
    
    

    Best regards

    Wolfgang

  • Posted 20 April 2021, 8:18 am EST

    Hi Stephan,

    We have escalated this issue to the developers and will let you know as soon as we get any update on this from the developers.

    [Internal Tracking ID: C1WIN-24755]

    @Wolfgang, thank you for your suggestions.

    Regards,

    Prabhat Sharma.

  • Posted 23 April 2021, 11:10 am EST

    Hi All,

    Thanks very much to the both of you, Wolfgang and Prabhat.

    Wolfgang, Thanks for the suggestion. I’ll give it a try.

    Best regards,

    Stephan

Need extra support?

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

Learn More

Forum Channels