• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

Question unzip archive with Cyrillic filenames inside

Dmytro

Regular Pleskian
Server operating system version
CloudLinux 8.7
Plesk version and microupdate number
18.0.52
Hi. I have some problems with topic.

Here's some more information:
1. If I'm using chrooted bash to unzip archive created by Winrar under windows system, I'm getting something like this for Ukrainian named files:


Code:
[someuser]# unzip pz2.zip
Archive:  pz2.zip
  inflating: ???????????????????? ????????????.docx

And I can fix it like this:

Code:
[someuser]# LANG=uk_UA.koi8u unzip pz2.zip
Archive:  pz2.zip
  inflating: постановка задачі.docx

And for rusian named files:

Code:
[someuser]# unzip pz.zip                                                          
Archive:  pz.zip
  inflating: ?????????? ??????.docx

And I can fix it like this:

Code:
[someuser]# LANG=ru_RU.utf-8 unzip pz.zip 
Archive:  pz.zip
  inflating: постановка задачи.docx

locale command shows:

Code:
LANG=
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=

I tried ./update-chroot.sh --locales with this warnings:

Code:
...............................................
...............................................
'/usr/sbin/ldconfig' -> '/var/www/vhosts/chroot/usr/sbin/ldconfig'
'/usr/bin/localedef' -> '/var/www/vhosts/chroot/usr/bin/localedef'
'/etc/profile' -> '/var/www/vhosts/chroot/etc/profile'
'/etc/profile.d/lang.sh' -> '/var/www/vhosts/chroot/etc/profile.d/lang.sh'
[error] character map file `UTF-8' not found: No such file or directory
[error] default character map file `ANSI_X3.4-1968' not found: No such file or directory
Done! Do not forget to run './update-chroot.sh --apply domains...' to apply changes in chroot template to domains.

and after ./update-chroot.sh --apply all (https://support.plesk.com/hc/en-us/...chrooted-shell-environment-template-in-Plesk-) . But this did not change the result.



Under root user I'm getting this:

Code:
[root]# unzip pz.zip
Archive:  pz.zip
  inflating: постановка задачи.docx 
[root]# unzip pz2.zip
Archive:  pz2.zip
  inflating: ╨┐╨╛╤Б╤В╨░╨╜╨╛╨▓╨║╨░ ╨╖╨░╨┤╨░╤З╤Ц.docx

[root]# locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

If I'm trying to unpack some zip archives using Plesk filemanager - I'm getting different results.

For example:
Code:
mismatching "local" filename (╨┐╨╛╤Б╤В╨░╨╜╨╛╨▓╨║╨░ ╨╖╨░╨┤╨░╤З╤Ц.docx), continuing with "central" filename version

Or there is no error but filename looks like ╨┐╨╛╤Б╤В╨░╨╜╨╛╨▓╨║╨░ ╨╖╨░╨┤╨░╤З╤Ц.docx

Is there anything I can do to unzip correctly these types of archives using bash (chrooted) or using plesk file manager?
 
As workaround i used .rar or .tar . In my case there is no problem with these types of archive, only with zip
 
Back
Top