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:
And I can fix it like this:
And for rusian named files:
And I can fix it like this:
locale command shows:
I tried ./update-chroot.sh --locales with this warnings:
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:
If I'm trying to unpack some zip archives using Plesk filemanager - I'm getting different results.
For example:
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?
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?