nginx 页面乱码问题

在配置nginx时常常遇到网页乱码的问题如图:

这时需要在server段里面添加两行:

default_type    ‘text/html’;
charset utf-8;

然后执行测试  重启操作

nginx -t    #nginx 配置文件测试
service nginx reload    #nginx 服务重新加载

原文地址:https://www.cnblogs.com/liangml/p/5992613.html