• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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