nginx serves broken characters (nginx on linux as guest system in vbox)

Solution 1:

I believe you should disable 'sendfile' for Nginx. Search for 'sendfile' in your Nginx configs and change it from 'on' to 'off'. It can go in your 'http{}' block:

sendfile off;

See this post about the interaction between Nginx, vboxsf and sendfile.

Solution 2:

One thing you'll want to check is the Content-Type header that is being sent out.

Open Chrome's Developer tools to the "Network" tab and load the CSS file again. Click on file name on the left side, and then on the "Headers" tab and scroll down to the Response Headers. You'll find a line like this:

Content-Type:text/html; charset=UTF-8

Does it match what you intended? If so, the issue may be in your browser settings. Do you get the same result in a second browser? If not, the issue is in your browser settings for one of your browsers.