# ... will not be accessible due to incompatible encoding

**URL:** <https://help.nextcloud.com/t/will-not-be-accessible-due-to-incompatible-encoding/86612>\
**Category:** ℹ️ Support\
**Created:** [July 6, 2020, 10:24am UTC](https://help.nextcloud.com/t/will-not-be-accessible-due-to-incompatible-encoding/86612 "2020-07-06T10:24:01Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![timojs](https://help.nextcloud.com/letter_avatar/timojs/32/6_449c533f586939b6e5f246632a46421f.png) [@timojs](https://help.nextcloud.com/u/timojs)\
**Post date:** [July 6, 2020, 10:24am UTC](https://help.nextcloud.com/t/will-not-be-accessible-due-to-incompatible-encoding/86612/1 "2020-07-06T10:24:01Z")

</div>

I am having problems with my nextcloud installation. After doing a filescan, all my data with German Umlaute (äöü) vanished. The error message just is:  
“Entry “/Timo/files/Universität/ComputationalPhysics/Python für Physiker/Einführung in die Programmiertechniken (Prof. Dr. L. Pollet - SoSe 2017)/Übungsblätter” will not be accessible due to incompatible encoding”.  
I remember that I even uploaded the data using Nextcloud on the Browser. I am hosting Nextcloud on a MacMini using a VM with Ubuntu 20.04 LTS.  
Does anyone know how to solve that?

---

<div class="post-metadata">

**Author:** ![devnull](https://help.nextcloud.com/user_avatar/help.nextcloud.com/devnull/32/27793_2.png) [@devnull](https://help.nextcloud.com/u/devnull)\
**Post date:** [July 6, 2020, 10:47am UTC](https://help.nextcloud.com/t/will-not-be-accessible-due-to-incompatible-encoding/86612/2 "2020-07-06T10:47:48Z")

</div>

> [@timojs](#):
>
> German Umlaute

😉 Nice. Sollte man endlich mal abschaffen.  
[Germanic umlaut - Wikipedia](https://en.wikipedia.org/wiki/Germanic_umlaut)

Perhaps you find here a solution:  
[filescan retrun "entry will not be accessible due to incompatible encoding" · Issue #3136 · nextcloud/server · GitHub](https://github.com/nextcloud/server/issues/3136)

`convmv -f utf-8 -t utf-8 -r --notest --nfc <nextcloud-data-folder>`  
Use a test folder.

---

<div class="post-metadata">

**Author:** ![timojs](https://help.nextcloud.com/letter_avatar/timojs/32/6_449c533f586939b6e5f246632a46421f.png) [@timojs](https://help.nextcloud.com/u/timojs)\
**Post date:** [July 6, 2020, 11:00am UTC](https://help.nextcloud.com/t/will-not-be-accessible-due-to-incompatible-encoding/86612/3 "2020-07-06T11:00:07Z")

</div>

Echt so 😃!  
Thats the strange part. My data is already utf-8 and convmv did not help unfortunately…

---

<div class="post-metadata">

**Author:** ![devnull](https://help.nextcloud.com/user_avatar/help.nextcloud.com/devnull/32/27793_2.png) [@devnull](https://help.nextcloud.com/u/devnull)\
**Post date:** [July 6, 2020, 11:05am UTC](https://help.nextcloud.com/t/will-not-be-accessible-due-to-incompatible-encoding/86612/4 "2020-07-06T11:05:44Z")

</div>

Ok i can send you two commands for converting file content (not file name).  
locale is on this linux system utf-8 but my editor (vim) destroys it for windows systems.  
Perhaps file names work similar bad with correct utf-8.

utf-8 to windows  
`iconv -f UTF-8 -t WINDOWS-1252 $1 > $2`  
windows to utf-8  
`iconv -f ISO-8859-1 -t UTF-8 $1 > $2`

---

<div class="post-metadata">

**Author:** ![cmeysing](https://help.nextcloud.com/letter_avatar/cmeysing/32/6_449c533f586939b6e5f246632a46421f.png) [@cmeysing](https://help.nextcloud.com/u/cmeysing)\
**Post date:** [September 1, 2020, 5:30pm UTC](https://help.nextcloud.com/t/will-not-be-accessible-due-to-incompatible-encoding/86612/5 "2020-09-01T17:30:54Z")

</div>

Dear Community,  
I have the same problem. Everything has worked fine so far. The files are stored via Nextcloud in the data directory with german umlauts (äöü). I can edit and access everything properly. Only the command occ files:scan brings the error message “will not be accessible due to incompatible encoding”. The filesystem is utf8 and the database as well:

```
[client]
default-character-set = utf8mb4

[mysqld]
character-set-server = utf8mb4
collation-server = utf8mb4_general_ci
transaction_isolation = READ-COMMITTED
binlog_format = ROW
innodb_large_prefix=on
innodb_file_format=barracuda
innodb_file_per_table=1

```

the php-ini:  
`default_charset = "UTF-8`

I use a vserver under ubuntu 16.04 lts with php 7.3 and apache.

I don’t know what to do. But I need the scan. I have imported a backup of data and wanted to scan the files.

I have executed the following commands. Unfortunately without positive result:

```
convmv -f utf-8 -t utf-8 -r --notest --nfc 
php occ files:scan --all

```

Thank you very much  
Christian

---

<div class="post-metadata">

**Author:** ![dg6nee](https://help.nextcloud.com/letter_avatar/dg6nee/32/6_449c533f586939b6e5f246632a46421f.png) [@dg6nee](https://help.nextcloud.com/u/dg6nee)\
**Post date:** [December 20, 2020, 6:09am UTC](https://help.nextcloud.com/t/will-not-be-accessible-due-to-incompatible-encoding/86612/6 "2020-12-20T06:09:24Z")

</div>

Hi Christian,

I have the same problem here and I digged a bit deeper. Just as an example, I took a file with the name “Hände.doc” (storage backend is a Windows machine)

on the Linux side (were NC is running) I did:

`strace ls H*.doc`  
[…]  
`stat("Ha\314\210nde.doc", {st_mode=S_IFREG|0770, st_size=75340, ...}) = 0`

Here I can clearly see the raw encoding: “H” + “a”, followed by 0xCC88 (U+0308, COMBINING DIAERESIS) .

=\> I conclude that the OS / filesystem is clearly using UTF-8 already. This explains why all attempts to “convert” the file names to UTF-8 have no effect. So it looks like a bug in the application to me.

I guess it is the code in ‘Scan.php’ which does a simple compare of the original path with the “normalized” path. Maybe this causes the trouble, because the character “‘ä’” could also be encoded directly, as 0xC3A4 ? (just a guess)

BTW: I also get tons of similar messages from other files with foreign encoding, for example with greek, chinese or spanish characters…

Do I see this right that all this is only a “warning”, which has no other consequences?

regards,  
Thomas

---

<div class="post-metadata">

**Author:** ![fridde](https://help.nextcloud.com/user_avatar/help.nextcloud.com/fridde/32/33765_2.png) [@fridde](https://help.nextcloud.com/u/fridde)\
**Post date:** [January 17, 2021, 2:48pm UTC](https://help.nextcloud.com/t/will-not-be-accessible-due-to-incompatible-encoding/86612/7 "2021-01-17T14:48:42Z")

</div>

I have the same problem: I ran `occ files:scan` and the file “Sven Väth\_Essential Mix.mp3” will not be accessible due to incompatible encoding as well as all many other files having ä, ö, å or any other non-ASCII letters in the file name.

The file is neither visible in the web interface nor is it synced via the nextcloud client.

So no, this is NOT just a warning.

BUT weirdly enough _most_ files with non-ASCII letter are accepted. I’ll try the strace method proposed by @dg6nee and report back.

---

<div class="post-metadata">

**Author:** ![fridde](https://help.nextcloud.com/user_avatar/help.nextcloud.com/fridde/32/33765_2.png) [@fridde](https://help.nextcloud.com/u/fridde)\
**Post date:** [January 17, 2021, 10:11pm UTC](https://help.nextcloud.com/t/will-not-be-accessible-due-to-incompatible-encoding/86612/8 "2021-01-17T22:11:04Z")

</div>

Okay, I found two comparable files:

The first has _incompatible_ encoding according to the readout.

`Entry "/Elias Doré/Elias Doré @ Rebellion der Träumer, 07.05.16_263237326 - Elias Doré.mp3" will not be accessible due to incompatible encoding`

`strace` shows

`lstat64("Elias Dore\314\201 @ Rebellion der Tra\314\210umer, 07.05.16_263237326 - Elias Dor\303\251.mp3", {st_mode=S_IFREG|0777, st_size=178917458, ...}) = 0`

But this one throws _no error_:

`File /Elias Doré/Bucht der Träumer 2019 - Atlantis, Friday Night_668487995 - Elias Doré.mp3`

`lstat64("Bucht der Tr\303\244umer 2019 - Atlantis, Friday Night_668487995 - Elias Dor\303\251.mp3", {st_mode=S_IFREG|0777, st_size=169984834, ...}) = 0`

Can anyone read this fluently? I have very little experience with weird encoding errors.

---

<div class="post-metadata">

**Author:** ![TobiasEigen](https://help.nextcloud.com/user_avatar/help.nextcloud.com/tobiaseigen/32/79976_2.png) [@TobiasEigen](https://help.nextcloud.com/u/TobiasEigen)\
**Post date:** [April 30, 2021, 3:43pm UTC](https://help.nextcloud.com/t/will-not-be-accessible-due-to-incompatible-encoding/86612/9 "2021-04-30T15:43:07Z")

</div>

I use rsync to backup my lightroom classic photos from my mac to nextcloud and make them accessible. So I can’t run the `convmv` command unless I want to run it every time I sync my files. The answer for me is in that great github link you shared:

> Can you try doing the encoding conversion while copying (`rsync -a --iconv=utf-8-mac,utf-8 ...`)

However, my mac has an older version of rsync that does not support iconv. I will have to upgrade rsync according to internet searches. Before I try this, has anyone else had success with this rsync command?

For now, I am going to stick with renaming my files in lightroom to remove the umlauts. There are not so many of them.

---

<div class="post-metadata">

**Author:** ![fjunillon](https://help.nextcloud.com/letter_avatar/fjunillon/32/6_449c533f586939b6e5f246632a46421f.png) [@fjunillon](https://help.nextcloud.com/u/fjunillon)\
**Post date:** [May 30, 2022, 4:51am UTC](https://help.nextcloud.com/t/will-not-be-accessible-due-to-incompatible-encoding/86612/10 "2022-05-30T04:51:14Z")

</div>

Hi all, got the same problem and found the solution on GIT nextcloud  
([filescan retrun "entry will not be accessible due to incompatible encoding" · Issue #3136 · nextcloud/server · GitHub](https://github.com/nextcloud/server/issues/3136#issuecomment-579470343))

Just installed **convmv** and run:  
`convmv -f utf-8 -t utf-8 -r --notest --nfc <nextcloud-data-folder>`  
After this a simple reindex helped me to see my data in Nextcloud:  
`php occ files:scan --all`

---

<div class="post-metadata">

**Author:** ![Kali](https://help.nextcloud.com/user_avatar/help.nextcloud.com/kali/32/46150_2.png) [@Kali](https://help.nextcloud.com/u/Kali)\
**Post date:** [September 27, 2022, 9:51am UTC](https://help.nextcloud.com/t/will-not-be-accessible-due-to-incompatible-encoding/86612/11 "2022-09-27T09:51:19Z")

</div>

Thanks!!! This (@fjunillon solution above) solved my issue too. Just to add, I also added `--replace` to the `convmv` command because some of the files were duplicate with the correct encoding and `convmv` failed to do anything with these. After adding `--replace` there were no longer any “incompatible encoding” files left in the directory and the `files:scan` completed successfully.

---

<div class="post-metadata">

**Author:** ![Mailandt](https://help.nextcloud.com/user_avatar/help.nextcloud.com/mailandt/32/41281_2.png) [@Mailandt](https://help.nextcloud.com/u/Mailandt)\
**Post date:** [May 3, 2023, 5:15pm UTC](https://help.nextcloud.com/t/will-not-be-accessible-due-to-incompatible-encoding/86612/12 "2023-05-03T17:15:43Z")

</div>

> [@devnull](#):
>
> convmv -f utf-8 -t utf-8 -r --notest --nfc

Hi this worked for me. I had files with space and ä ü and so on. But now ist honky doory. Thanks

---

<div class="post-metadata">

**Author:** ![damarges](https://help.nextcloud.com/letter_avatar/damarges/32/6_449c533f586939b6e5f246632a46421f.png) [@damarges](https://help.nextcloud.com/u/damarges)\
**Post date:** [July 3, 2023, 8:50am UTC](https://help.nextcloud.com/t/will-not-be-accessible-due-to-incompatible-encoding/86612/13 "2023-07-03T08:50:52Z")

</div>

Solved my headaches. Thanks a lot!

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 14, 2024, 3:55pm UTC](https://help.nextcloud.com/t/will-not-be-accessible-due-to-incompatible-encoding/86612/14 "2024-12-14T15:55:57Z")

</div>


