installation – How do I get rid of “encoding error” when installing WordPress?

When trying to install WordPress on the Server it says that the encoding of the file is incorrect and I cannot even select the language.
This is the error code.

The character encoding of the HTML document was not declared.
The document will render with garbled text in some browser configurations
if the document contains characters from outside the US-ASCII range.
The character encoding of the page must be declared in the document or in the transfer protocol.

I tried to install the software on Mamp and there it works.
I tried uploading it to multiple directories and created different subdomains. It does not work.

What is the problem?