Learn about Centmin Mod LEMP Stack today
Register Now

Nginx Where to set the default page encoding ?

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by jellday, Apr 12, 2016.

  1. jellday

    jellday Member

    83
    4
    8
    May 31, 2014
    Ratings:
    +11
    Local Time:
    10:31 AM
    1.4.6
    5.5
    It seems that when the browser visit my site, all pages are set to UTF, I have to manually change the browser's encoding to display properly. The meta element setting is correct in each page.
    I guess it must be some default encoding setting mislead the browser. Where is it?

     
  2. eva2000

    eva2000 Administrator Staff Member

    54,909
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    12:31 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    you might be looking for /usr/local/nginx/conf/nginx.conf line for
    Code (Text):
    charset utf-8;
     
  3. jellday

    jellday Member

    83
    4
    8
    May 31, 2014
    Ratings:
    +11
    Local Time:
    10:31 AM
    1.4.6
    5.5
    Now everything is good. Thx.