A
A
artsnz2015-01-14 21:26:46
Character encoding
artsnz, 2015-01-14 21:26:46

Russian names are broken in archives from owncloud, how to fix it?

Dear community, help solve the problem with encoding in owncloud when downloading folders with archives. There is a NAS (Nas4free), fs - ZFS and a server with Debian 7 on which the ball is mounted from this NAS (SMB or NFS), the Russian names of folders / files from the balls inside penguinux are displayed correctly, in owncloud itself there are also no problems with encoding, and when downloading a whole folder, owncloud automatically packs it into an archive, all Russian names become krakozyabry. Although, if you create a folder from owncloud itself on the same ball and place files and folders with Russian names inside, then when you download the folder, all the same archive, all the names are reflected correctly in Russian, tell me where to dig, otherwise I already broke my whole head.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ilya Chertov, 2015-04-14
@artsnz

mogarych.narod.ru/texts/owncloud_install.html
15th point

K
kalinkin_43, 2016-09-29
@kalinkin_43

Bugs encoding Russian Cyrillic letters when downloading zip files through the web interface, owncloud 9.1. The description of fixes encoding problems
Cloud 9.1 version, cracked when downloaded. Description of the troubleshooting.
to correct the problem with the coding we need to make changes to the file
/ var / www / owncloud / lib / private / Streamer.php
Line 66
Original: $this->streamerInstance->addEmptyDir($rootDir);
Change: $this->streamerInstance->addEmptyDir(iconv("utf-8", "cp866", $rootDir));
Line 69
Original: $this->addFileFromStream($fh, $internalDir . $filename, $filesize);
Change: $this->addFileFromStream($fh, iconv("utf-8", "cp866", $internalDir.$filename),
My Server configuration:
Operating system: Ubuntu 16.04.01 TLS
Web server: apache
Database: mysql
PHP version: 7
ownCloud version: 9.1
[email protected]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question