Zip archive - diacritics

Things you’d like to miss in the future...
Forum rules
:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:

:info: Please include the following information:
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".

:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:
Post Reply
Petru
Posts: 4
Joined: 21 Dec 2024 15:47

Zip archive - diacritics

Post by Petru »

Zip does not archive files with diacritics in their names. 1. Why? 2. How can this problem be solved?

highend
Posts: 14940
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Zip archive - diacritics

Post by highend »

That's a windows limitation, Windows Explorer can't do it either.

Use e.g. 7-Zip to do it
One of my scripts helped you out? Please donate via Paypal

Petru
Posts: 4
Joined: 21 Dec 2024 15:47

Re: Zip archive - diacritics

Post 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!
Petru

highend
Posts: 14940
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Zip archive - diacritics

Post by highend »

Not here
Animation.gif
To see the attached files, you need to log into the forum.
One of my scripts helped you out? Please donate via Paypal

admin
Site Admin
Posts: 66223
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Zip archive - diacritics

Post 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.

Petru
Posts: 4
Joined: 21 Dec 2024 15:47

Re: Zip archive - diacritics

Post by Petru »

Last edited by Petru on 19 Sep 2025 15:46, edited 1 time in total.
Petru

phred
Posts: 645
Joined: 26 Dec 2021 02:10
Location: XY 64bit on Win10 at 100% from Boston USA

Re: Zip archive - diacritics

Post 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.

Horst
Posts: 1383
Joined: 24 Jan 2021 12:27
Location: Germany

Re: Zip archive - diacritics

Post 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; }

Windows 11 Home, Version 25H2 (OS Build 26200.8655)
Portable x64 XYplorer (Actual version, including betas)
Display settings 1920 x 1080 Scale 100%
Everything 1.5.0.1415b (x64), Everything Toolbar 2.4.0, Listary Pro 6.3.6.99

Petru
Posts: 4
Joined: 21 Dec 2024 15:47

Re: Zip archive - diacritics

Post by Petru »

I already regret buying this software.
Petru

admin
Site Admin
Posts: 66223
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Zip archive - diacritics

Post 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.

admin
Site Admin
Posts: 66223
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Zip archive - diacritics

Post 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!"

Post Reply