]> git.kaiwu.me - nginx.git/commitdiff
Removed legacy charset directive from default config example.
authorMohamed Karrab <karrab2015@gmail.com>
Mon, 18 Aug 2025 19:28:06 +0000 (20:28 +0100)
committerpluknet <pluknet@nginx.com>
Tue, 19 Aug 2025 11:47:51 +0000 (15:47 +0400)
The example configuration previously specified 'charset koi8-r',
which is a legacy Cyrillic encoding.  As koi8-r is rarely used today
and modern browsers handle UTF-8 by default, specifying the charset
explicitly is unnecessary.  Removing the directive keeps the example
configuration concise and aligned with current best practices.

conf/nginx.conf

index 29bc085f28c9427e031bf77f27f61b0f903d8759..2315a86637d0b11ec609325ccea2ee801293ced4 100644 (file)
@@ -36,8 +36,6 @@ http {
         listen       80;
         server_name  localhost;
 
-        #charset koi8-r;
-
         #access_log  logs/host.access.log  main;
 
         location / {