Page 1 of 1

Zip archive - diacritics

Posted: 19 Sep 2025 13:35
by Petru
Zip does not archive files with diacritics in their names. 1. Why? 2. How can this problem be solved?

Re: Zip archive - diacritics

Posted: 19 Sep 2025 13:41
by highend
That's a windows limitation, Windows Explorer can't do it either.

Use e.g. 7-Zip to do it

Re: Zip archive - diacritics

Posted: 19 Sep 2025 14:13
by Petru
highend wrote: 19 Sep 2025 13:41 That's a windows limitation, Windows Explorer can't do it either.
In Windows Explorer works very well with diacritics. Just (re)tested!

Re: Zip archive - diacritics

Posted: 19 Sep 2025 14:17
by highend
Not here
Animation.gif

Re: Zip archive - diacritics

Posted: 19 Sep 2025 14:17
by admin
Petru wrote: 19 Sep 2025 13:35 Zip does not archive files with diacritics in their names. 1. Why? 2. How can this problem be solved?
See my signature.

Re: Zip archive - diacritics

Posted: 19 Sep 2025 14:31
by Petru

Re: Zip archive - diacritics

Posted: 19 Sep 2025 14:43
by phred
- If you think you attached an image, you didn't.

- You haven't read admin's (Don's) comment about reading his signature.

From Admin/Don...
Forum users who have their Windows version and screen scaling percentage in the location field of their profile will get priority support. And be sure to state your XY version number in the body of your post. No info in the location field? Be patient and Don will get to you after he takes care of those who have the proper info in the proper place.

Re: Zip archive - diacritics

Posted: 19 Sep 2025 15:19
by Horst
7-zip has no problems to pack files to Zip or 7Zip archives
with diacritics in their name
Tested with Windows Explorer, Total Commander and the Context menu from XY.

Also with this XY script from the script forum.

Code: Select all

/*

Title: 7-ZipXY
Summary: The most useful right-click options of 7-Zip, portablized for use in XY
Author: WirlyWirly
URL: https://www.xyplorer.com/xyfc/viewtopic.php?f=7&t=24580

1 tab per submenu
DISPLAY|DATA (return value)|ICON|STATE

*/

$SEVENZIP = "C:\Program Files\7-Zip\7zG.exe";

    $menu = <<<MENU

Extract to "*\"|$selected_items = ''; foreach($file, "<selitems ::>", "::") { $selected_items = lax($selected_items -ai!"$file") }; run lax("$SEVENZIP" x -o".\*\" "-spe" "-an" $selected_items)|
Extract here|$selected_items = ''; foreach($file, "<selitems ::>", "::") { $selected_items = lax($selected_items -ai!"$file") }; run lax("$SEVENZIP" x -o".\" "-an" $selected_items)|
-
Extract to "*\" in other pane|$selected_items = ''; foreach($file, "<selitems ::>", "::") { $selected_items = lax($selected_items -ai!"$file") }; run lax("$SEVENZIP" x -o"<path i>" "-spe" "-an" $selected_items)|
Extract to other pane|$selected_items = ''; foreach($file, "<selitems ::>", "::") { $selected_items = lax($selected_items -ai!"$file") }; run lax("$SEVENZIP" x -o"<path i>" "-an" $selected_items)|
-
Add to archive...|$selected_items = ''; foreach($file, "<selitems ::>", "::") { $selected_items = lax($selected_items -i!"$file") }; run lax("$SEVENZIP" a $selected_items -ad -saa -- "<curitempath>\<curbase>")|

MENU;

    // Get X/Y position of a control
    //$position = controlposition('TAB 1', 0);
    //$x_pos = gettoken($position, 1, '|');
    //$y_pos = gettoken($position, 2, '|');

    // Display the context menu
    //$command = popupnested($menu, $x_pos, $y_pos,,,,,|);
    $command = popupnested($menu,,,,,,,|);

    // Run the selected command or skip if it uses an id #
    if ($command && !regexmatches($command, '^\#\d+$')) { load $command,, s; }
    //if ($command) { load $command,, s; }


Re: Zip archive - diacritics

Posted: 19 Sep 2025 15:52
by Petru
I already regret buying this software.

Re: Zip archive - diacritics

Posted: 20 Sep 2025 10:17
by admin
Because Windows doesn't work right?

Unfortunately, AI is correct here:
Windows's built-in "Compressed Folders" tool has a known issue with Unicode filenames because it uses a legacy encoding system (like CP437) that doesn't properly support characters from other languages or alphabets. To create ZIP files that correctly handle Unicode characters, you need to use a dedicated third-party ZIP tool like 7-Zip or WinZip, which specifically support Unicode in their ZIP archives.
So, just get yourself a decent ZIP tool and zip away using the context menu. That's what we all do. XY's zip commands are just there for the rare case that no zip tool is available on a system. A fallback to Windows's built-in and outdated "Compressed Folders" tool. Better than nothing.

Re: Zip archive - diacritics

Posted: 20 Sep 2025 11:25
by admin
Petru wrote:Adios ! It's a toxic atmosphere here
I suppose that means, "Thank you for trying to help by providing me with all the necessary information to understand the nature of my problem and showing me several ways to solve it!"