Issue with Readme.md file that contains a bad character (at least, iOs client)

,

Hello

if a subfolder contains a Readme.md file with 0xa0 character in it’s content, when, the all folder is not available to iOs client.

How to reproduce:
create a folder ‘test’ with two subfolder ‘test/a’ and ‘test/b’:
on iOs client, folder test is well displayed and show folder a and folder b.
now put a Readme.md with a 0xA0 character (the ascii code for non breakable space) in his content in folder ‘test/a’:
now, on iOs client, folder test is showed empty.
Rename the test/a/Readme.md into test/a/Readme_old.md and then, on iOs client, folder test show his two subfolder.

Easy, no ?

Update
after some try, it seem the 0xA0 is not the only char to broke folder listing: 0xE8, 0xE9, … (é, è, ô, à, ç, ù …), if present as single ascii char (not utf-8) in the readme.md file, prohibits correct folder listing.
You can use visual code to insert this kind of char by setting “iso 8859-1” as file encoding.

I can provide some example.

Does it work if the file is saved in UTF-8?

Yes, it works with a correct utf-8 encoding.

A question: do you know why the subfolder’s readme.md is parsed for directory listing ?

I assume because of richworkspace: https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/text_configuration.html#disable-rich-workspaces-globally

Can you raise an issue at GitHub · Where software is built?

1 Like

I will do it tomorrow.

thanks for your answer.

Kind regards, Francois

1 Like