Bugs encoding Russian Cyrillic letters when downloading zip files through the web interface, owncloud 9.1

9.1.x
help

#1

The description of fixes encoding problems

Steps to reproduce
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), $filesize);

Expected behaviour
downloaded zip files through the web interface with rus cyrillic letters in names of files and folders without coding bugs

Actual behaviour
downloaded zip files with rus cyrillic letters heve unreadeble names of files and folders

Server configuration
Operating system: Ubuntu 16.04.01 TLS
Web server: apache
Database: mysql
PHP version: 7
ownCloud version (see ownCloud admin page): 9.1
Updated from an older ownCloud or fresh install: fresh install
ownCloud log (data/owncloud.log, see https://central.owncloud.org/t/how-to-find-webserver-or-oc-logfile-enable-php-logfile/808): no problems

Special configuration (external storage, external authentication, reverse proxy, server-side-encryption): simply config, 50 users, no encryption

Integrity status for oC9+

Login as admin user into your ownCloud and access
http://example.com/index.php/settings/integrity/failed
paste the results here.

#2

Hi,

thanks for posting. As the chances are very low that something like this is noticed in here please create a new issue (or better a Pull Request) on github for that:

https://github.com/owncloud/core/issues


#3

Ref: