[Solved] -Apache- files from “website” not UTF8


The only thing that is wrong is that your browser doesn’t know it should interpret the UTF-8 encoded JSON file as UTF-8. Instead it falls back to its default Latin-1 interpretation, in which certain characters will screw up, because it’s using the wrong encoding to interpret the file.

That is all. The file will appear fine if it is interpreted using the correct encoding, UTF-8 in this case.
Use the View → Encoding menu of your browser to force it to UTF-8 and see it work.

Why doesn’t the browser use UTF-8? Because there’s no HTTP Content-Type header telling it to do so. Why is there no appropriate HTTP header set? Because you didn’t tell your web server that it should set this header for .json files. How do you tell Apache to do so? By adding this line in an .htaccess file:

AddCharset UTF-8 .json

1

solved -Apache- files from “website” not UTF8