[Solved] Swedish character sync issues

Hi! I’m somewhat new to Nextcloud and got som issues syncing Swedish characters, mainly “Å, Ä, Ö, å, ä and ö” characters in file names. In the client i get:

Server replied

"500 Internal Server Error" to "PUT https://mydomain.com/remote.php/dav/files/account/directory/Helvetes Jävlar.txt" (Skipped due to earlier error, trying again in 24hour(s))
directory/Helvetes Jävlar.txt

(Note: I shorted the actual dir with “directory”.)

On the server side of things i get:

I really have no idea what might be wrong, but then of course I’m new to using nginx and pgsql.

My setup is as following:
OS: Ubuntu server 20.04 LTS
DB: PostgreSQL 12.2
PHP: 7.3.17
Nginx: 1.17.10

Some pointing in the correct direction would be great, i have checked PostgreSQL encoding and it says “UTF8” which i suppose is correct. i have also checked php and utf8 is set

default_charset = "utf-8"

Solution:

  1. In Nginx.conf i added this line charset UTF-8 after http {
  2. As i was behind a apache reverse_proxy i added AllowEncodedSlashes NoDecode under the virtual host.

This solved the issue perfectly, no issues with uploading, editing renaming or removing files with Swedish characters any more. I suppose this is related to other languages as well like German, Spanish, Italian and so on.

Since this information is not located anywhere basically i find it very useful and needs to be put forward in case some one else is having this issue. Maybe even included in the docs under reverse proxy or character sets? Or even both.

1 Like