• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question unzip archive with Cyrillic filenames inside

Dmytro

Basic 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