You need to use the ngx_http_charset_module. This module provides the specified charset to the "Content-Type" response header field. You can view such header using nothting but standard wget or curl command:
curl -I http://example.com
OR
wget --server-response -O /dev/null http://example.com
How do I enable charset HTTP-header in Nginx?
Open your nginx.conf, enter:
# vi nginx.conf
Append/modify the following directive in http, server, or location:
charset UTF-8;
Save and close the file. Reload the nginx web server, enter:
# /usr/local/nginx/sbin/nginx -s reload
How do I test charset HTTP-header?
Type the following command:
$ wget --server-response -O /dev/null http://www.cyberciti.biz
OR
$ curl -I http://www.cyberciti.biz
Sample outputs:
HTTP/1.1 200 OK
Server: nginx
Date: Mon, 05 Nov 2012 16:42:51 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
X-Whom: l2-com-cyber
Vary: Cookie
Last-Modified: Mon, 05 Nov 2012 16:38:02 GMT
Cache-Control: max-age=311, must-revalidate
X-Galaxy: Andromeda-1
X-Origin-Type: DynamicViaDAL - 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012

- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop













{ 0 comments… add one now }