入门教程

设置静态网页编码

  • 针对服务器
http {
    ...
    charset  UTF-8;
    ...
    include /etc/nginx/conf.d/*.conf;
}
  • 针对location
server {
    listen       80;
    server_name  _;

    location / {
        charset  UTF-8;
    }
}
扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄