UTF-8 not working nginx UTF-8 not working nginx nginx nginx

UTF-8 not working nginx


Your files must be in UTF-8 as well and the HTTP header you send is more important than the meta tag.

To deliver all your content with UTF-8 encoding (HTTP header) via nginx do the following:

# /etc/nginx/nginx.confhttp {    charset utf-8;}

But the important part is that your files actually have to be encoded in UTF-8 for anything to work. A good editor (e.g. Notepad2, Notepad++, NetBeans IDE, Adobe Dreamweaver, …) allows you to change the encoding of your file.