liyulong1982 发表于 2012-01-15 15:24

nginx乱码问题

刚搭好的nginx服务器,但是返回的页面会莫名奇妙的被加上一些乱码字符
我的测试页面就是一个空白页,有1000行aaaaaaaaa
结果返回的是这样的:


nginx: nginx version: nginx/1.0.4
nginx: built by gcc 4.3.2 (SUSE Linux)
nginx: TLS SNI support disabled
nginx: configure arguments: --with-http_ssl_module --with-pcre=/root/develop/thirdparty/pcre-8.21 --user=www --group=www --prefix=/usr/local/nginx --with-http_flv_module --with-http_stub_status_module

zhangheng520 发表于 2012-01-16 16:24

你的浏览器字符编码没问题吧?

另外尝试下nginx的配置文件将 charset 注释掉.
页: [1]
查看完整版本: nginx乱码问题