I`m facing the same issue with External Storage that I have set in my Nextcloud.
My setup is:
OS: Raspbian GNU/Linux 10 (buster)
NC19
PHP 7.3.14
Database: Server version: 10.3.22-MariaDB-0+deb10u1 - Raspbian 10
Apache: Apache/2.4.38 (Raspbian)
I have already adjusted my database following the below instructions but the error still happening when running occ files:scan
.
https://docs.nextcloud.com/server/15/admin_manual/configuration_database/mysql_4byte_support.html
$ sudo -u www-data php /var/www/nextcloud/occ files:scan --all
Starting scan for user 1 out of 1 (admin)
Entry "/var/www/nextcloud/data/admin/files/Ciências.PDF" will not be accessible due to incompatible encoding
Entry "/var/www/nextcloud/data/admin/files/História de Tenório.mp4" will not be accessible due to incompatible encoding
Hope someone have a solution to avoid this error.