共计 355 个字符,预计需要花费 1 分钟才能阅读完成。
环境是 bugbt
nginx 1.22
php5.4
server
{
listen 80;
server_name 域名
index index.php index.html index.htm default.php default.htm default.html;
root /www/wwwroot/ 域名地址
charset utf-8; ### 这里也指定了编码还是不行
location ~ .*.yml$ {
add_header Content-Type text/yml;
charset utf-8;### 这里也指定了编码还是不行
}
或者 给 utf- 8 加上单引号也不行
charset ‘utf-8’;
都不行,文件格式是 utf- 8 无 bom 头的
正文完